Minor fixes

This commit is contained in:
Lars Kusch 2022-12-16 11:25:23 +01:00
parent 347b2d0b4a
commit 034ed039e0

View File

@ -29,6 +29,7 @@ use App\PaymentDrivers\Stripe\ACH;
use App\PaymentDrivers\Stripe\ACSS; use App\PaymentDrivers\Stripe\ACSS;
use App\PaymentDrivers\Stripe\Alipay; use App\PaymentDrivers\Stripe\Alipay;
use App\PaymentDrivers\Stripe\ApplePay; use App\PaymentDrivers\Stripe\ApplePay;
use App\PaymentDrivers\Stripe\BACS;
use App\PaymentDrivers\Stripe\Bancontact; use App\PaymentDrivers\Stripe\Bancontact;
use App\PaymentDrivers\Stripe\BECS; use App\PaymentDrivers\Stripe\BECS;
use App\PaymentDrivers\Stripe\BrowserPay; use App\PaymentDrivers\Stripe\BrowserPay;
@ -100,6 +101,7 @@ class StripePaymentDriver extends BaseDriver
GatewayType::ACSS => ACSS::class, GatewayType::ACSS => ACSS::class,
GatewayType::FPX => FPX::class, GatewayType::FPX => FPX::class,
GatewayType::KLARNA => Klarna::class, GatewayType::KLARNA => Klarna::class,
GatewayType::BACS => BACS::class,
]; ];
const SYSTEM_LOG_TYPE = SystemLog::TYPE_STRIPE; const SYSTEM_LOG_TYPE = SystemLog::TYPE_STRIPE;
@ -241,7 +243,7 @@ class StripePaymentDriver extends BaseDriver
} }
if ($this->client if ($this->client
&& $this->client->currency() && $this->client->currency()
&& in_array($this->client->currency()->code, ['GDB']) && in_array($this->client->currency()->code, ['GBP'])
&& isset($this->client->country) && isset($this->client->country)
&& in_array($this->client->country->iso_3166_3, ['GBR'])) { && in_array($this->client->country->iso_3166_3, ['GBR'])) {
$types[] = GatewayType::BACS; $types[] = GatewayType::BACS;