mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update StripePaymentDriver.php
This commit is contained in:
parent
24681e2f23
commit
eb04453369
@ -250,11 +250,10 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
&& $this->client->currency()
|
&& $this->client->currency()
|
||||||
&& in_array($this->client->currency()->code, ['EUR', 'DKK', 'GBP', 'NOK', 'SEK', 'AUD', 'NZD', 'CAD', 'PLN', 'CHF', 'USD'])
|
&& in_array($this->client->currency()->code, ['EUR', 'DKK', 'GBP', 'NOK', 'SEK', 'AUD', 'NZD', 'CAD', 'PLN', 'CHF', 'USD'])
|
||||||
&& isset($this->client->country)
|
&& isset($this->client->country)
|
||||||
&& in_array(Country::find($this->client->company->country()), ['USA'])
|
&& in_array($this->client->company->country()->getID(), ['840'])
|
||||||
&& in_array($this->client->country->iso_3166_3, ['AUT','BEL','DNK','FIN','FRA','DEU','IRL','ITA','NLD','NOR','ESP','SWE','GBR','USA'])) {
|
&& in_array($this->client->country->iso_3166_3, ['AUT','BEL','DNK','FIN','FRA','DEU','IRL','ITA','NLD','NOR','ESP','SWE','GBR','USA'])) {
|
||||||
$types[] = GatewayType::KLARNA;
|
$types[] = GatewayType::KLARNA;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
$this->client
|
$this->client
|
||||||
&& isset($this->client->country)
|
&& isset($this->client->country)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user