mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Supported countries in StripePaymentDriver
This commit is contained in:
parent
ca686e677d
commit
697300750a
@ -141,7 +141,6 @@ class StripePaymentDriver extends BaseDriver
|
||||
$types = [
|
||||
// GatewayType::CRYPTO,
|
||||
GatewayType::CREDIT_CARD,
|
||||
GatewayType::APPLE_PAY,
|
||||
];
|
||||
|
||||
if ($this->client
|
||||
@ -220,6 +219,14 @@ class StripePaymentDriver extends BaseDriver
|
||||
&& in_array($this->client->country->iso_3166_3, ["CAN", "USA"]))
|
||||
$types[] = GatewayType::ACSS;
|
||||
|
||||
if (
|
||||
$this->client
|
||||
&& isset($this->client->country)
|
||||
&& in_array($this->client->country->iso_3166_2, ['AE', 'AT', 'AU', 'BE', 'BG', 'BR', 'CA', 'CH', 'CI', 'CR', 'CY', 'CZ', 'DE', 'DK', 'DO', 'EE', 'ES', 'FI', 'FR', 'GB', 'GI', 'GR', 'GT', 'HK', 'HU', 'ID', 'IE', 'IN', 'IT', 'JP', 'LI', 'LT', 'LU', 'LV', 'MT', 'MX', 'MY', 'NL', 'NO', 'NZ', 'PE', 'PH', 'PL', 'PT', 'RO', 'SE', 'SG', 'SI', 'SK', 'SN', 'TH', 'TT', 'US', 'UY'])
|
||||
) {
|
||||
$types[] = GatewayType::SOFORT;
|
||||
}
|
||||
|
||||
return $types;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user