Alter Stripe Payment Driver

This commit is contained in:
Lars Kusch 2022-01-20 08:29:30 +01:00
parent bff8d1f95c
commit 26d48f6e98

View File

@ -41,6 +41,7 @@ use App\PaymentDrivers\Stripe\Bancontact;
use App\PaymentDrivers\Stripe\BECS;
use App\PaymentDrivers\Stripe\ACSS;
use App\PaymentDrivers\Stripe\BrowserPay;
use App\PaymentDrivers\Stripe\FPX;
use App\PaymentDrivers\Stripe\UpdatePaymentMethods;
use App\PaymentDrivers\Stripe\Utilities;
use App\Utils\Traits\MakesHash;
@ -198,6 +199,13 @@ class StripePaymentDriver extends BaseDriver
&& in_array($this->client->country->iso_3166_3, ["AUT"]))
$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
&& $this->client->currency()
&& ($this->client->currency()->code == 'EUR')
@ -266,6 +274,8 @@ class StripePaymentDriver extends BaseDriver
return 'gateways.stripe.becs';
case GatewayType::ACSS:
return 'gateways.stripe.acss';
case GatewayType::FPX:
return 'gateways.stripe.fpx';
default:
break;
}