From 034ed039e028990de6b122c483edb8d7e3676d8b Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Fri, 16 Dec 2022 11:25:23 +0100 Subject: [PATCH] Minor fixes --- app/PaymentDrivers/StripePaymentDriver.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/StripePaymentDriver.php b/app/PaymentDrivers/StripePaymentDriver.php index 699865183e22..f0958519b7fe 100644 --- a/app/PaymentDrivers/StripePaymentDriver.php +++ b/app/PaymentDrivers/StripePaymentDriver.php @@ -29,6 +29,7 @@ use App\PaymentDrivers\Stripe\ACH; use App\PaymentDrivers\Stripe\ACSS; use App\PaymentDrivers\Stripe\Alipay; use App\PaymentDrivers\Stripe\ApplePay; +use App\PaymentDrivers\Stripe\BACS; use App\PaymentDrivers\Stripe\Bancontact; use App\PaymentDrivers\Stripe\BECS; use App\PaymentDrivers\Stripe\BrowserPay; @@ -100,6 +101,7 @@ class StripePaymentDriver extends BaseDriver GatewayType::ACSS => ACSS::class, GatewayType::FPX => FPX::class, GatewayType::KLARNA => Klarna::class, + GatewayType::BACS => BACS::class, ]; const SYSTEM_LOG_TYPE = SystemLog::TYPE_STRIPE; @@ -241,7 +243,7 @@ class StripePaymentDriver extends BaseDriver } if ($this->client && $this->client->currency() - && in_array($this->client->currency()->code, ['GDB']) + && in_array($this->client->currency()->code, ['GBP']) && isset($this->client->country) && in_array($this->client->country->iso_3166_3, ['GBR'])) { $types[] = GatewayType::BACS;