mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 15:34:39 -04:00
Alter Stripe Payment Driver
This commit is contained in:
parent
bff8d1f95c
commit
26d48f6e98
@ -41,6 +41,7 @@ use App\PaymentDrivers\Stripe\Bancontact;
|
|||||||
use App\PaymentDrivers\Stripe\BECS;
|
use App\PaymentDrivers\Stripe\BECS;
|
||||||
use App\PaymentDrivers\Stripe\ACSS;
|
use App\PaymentDrivers\Stripe\ACSS;
|
||||||
use App\PaymentDrivers\Stripe\BrowserPay;
|
use App\PaymentDrivers\Stripe\BrowserPay;
|
||||||
|
use App\PaymentDrivers\Stripe\FPX;
|
||||||
use App\PaymentDrivers\Stripe\UpdatePaymentMethods;
|
use App\PaymentDrivers\Stripe\UpdatePaymentMethods;
|
||||||
use App\PaymentDrivers\Stripe\Utilities;
|
use App\PaymentDrivers\Stripe\Utilities;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
@ -198,6 +199,13 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
&& in_array($this->client->country->iso_3166_3, ["AUT"]))
|
&& in_array($this->client->country->iso_3166_3, ["AUT"]))
|
||||||
$types[] = GatewayType::EPS;
|
$types[] = GatewayType::EPS;
|
||||||
|
|
||||||
|
if ($this->client
|
||||||
|
&& $this->client->currency()
|
||||||
|
&& ($this->client->currency()->code == 'MYR')
|
||||||
|
&& isset($this->client->country)
|
||||||
|
&& in_array($this->client->country->iso_3166_3, ["MYS"]))
|
||||||
|
$types[] = GatewayType::FPX;
|
||||||
|
|
||||||
if ($this->client
|
if ($this->client
|
||||||
&& $this->client->currency()
|
&& $this->client->currency()
|
||||||
&& ($this->client->currency()->code == 'EUR')
|
&& ($this->client->currency()->code == 'EUR')
|
||||||
@ -266,6 +274,8 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
return 'gateways.stripe.becs';
|
return 'gateways.stripe.becs';
|
||||||
case GatewayType::ACSS:
|
case GatewayType::ACSS:
|
||||||
return 'gateways.stripe.acss';
|
return 'gateways.stripe.acss';
|
||||||
|
case GatewayType::FPX:
|
||||||
|
return 'gateways.stripe.fpx';
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user