mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:24:40 -04:00
Access country
This commit is contained in:
parent
dd4d5534fb
commit
00184ffb51
@ -41,7 +41,7 @@ class ACH
|
|||||||
public function authorizeView($data)
|
public function authorizeView($data)
|
||||||
{
|
{
|
||||||
$data['gateway'] = $this->wepay_payment_driver;
|
$data['gateway'] = $this->wepay_payment_driver;
|
||||||
$data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company()->iso_3166_2;
|
$data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company->country()->iso_3166_2;
|
||||||
|
|
||||||
return render('gateways.wepay.authorize.bank_transfer', $data);
|
return render('gateways.wepay.authorize.bank_transfer', $data);
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class CreditCard
|
|||||||
public function authorizeView($data)
|
public function authorizeView($data)
|
||||||
{
|
{
|
||||||
$data['gateway'] = $this->wepay_payment_driver;
|
$data['gateway'] = $this->wepay_payment_driver;
|
||||||
$data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company()->iso_3166_2;
|
$data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company->country()->iso_3166_2;
|
||||||
|
|
||||||
return render('gateways.wepay.authorize.authorize', $data);
|
return render('gateways.wepay.authorize.authorize', $data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user