Update StripePaymentDriver.php

This commit is contained in:
Lars Kusch 2022-12-10 05:49:57 +01:00 committed by GitHub
parent 24681e2f23
commit eb04453369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)