diff --git a/app/PaymentDrivers/StripePaymentDriver.php b/app/PaymentDrivers/StripePaymentDriver.php index d6416d0d6222..0ffcf502d569 100644 --- a/app/PaymentDrivers/StripePaymentDriver.php +++ b/app/PaymentDrivers/StripePaymentDriver.php @@ -150,12 +150,16 @@ class StripePaymentDriver extends BaseDriver } if ($this->client + && $this->client->currency() + && ($this->client->currency()->code == 'EUR') && isset($this->client->country) && in_array($this->client->country->iso_3166_3, ['AUS', 'DNK', 'DEU', 'ITA', 'LUX', 'NOR', 'SVN', 'GBR', 'EST', 'GRC', 'JPN', 'PRT', 'ESP', 'USA', 'BEL', 'FIN'])) { // TODO: More has to be added https://stripe.com/docs/payments/sepa-debit $types[] = GatewayType::SEPA; } - if ($this -> client + if ($this->client + && $this->client->currency() + && ($this->client->currency()->code == 'EUR') && isset($this->client->country) && in_array($this->client->country->iso_3166_3, ["NLD"])) $types[] = GatewayType::IDEAL;