mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for iDeal payments with Stripe
This commit is contained in:
parent
c05d116402
commit
beb503758e
@ -150,12 +150,16 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->client
|
if ($this->client
|
||||||
|
&& $this->client->currency()
|
||||||
|
&& ($this->client->currency()->code == 'EUR')
|
||||||
&& isset($this->client->country)
|
&& 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
|
&& 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;
|
$types[] = GatewayType::SEPA;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this -> client
|
if ($this->client
|
||||||
|
&& $this->client->currency()
|
||||||
|
&& ($this->client->currency()->code == 'EUR')
|
||||||
&& isset($this->client->country)
|
&& isset($this->client->country)
|
||||||
&& in_array($this->client->country->iso_3166_3, ["NLD"]))
|
&& in_array($this->client->country->iso_3166_3, ["NLD"]))
|
||||||
$types[] = GatewayType::IDEAL;
|
$types[] = GatewayType::IDEAL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user