1
0
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:
Benjamin Beganović 2021-11-01 17:27:45 +01:00
parent ca686e677d
commit 697300750a

View File

@ -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;
}