mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Add Stripe support for Switzerland
This commit is contained in:
parent
c79fb7e141
commit
d98d5d8f62
3 changed files with 15 additions and 0 deletions
|
|
@ -155,6 +155,7 @@ export const mapInputsToStripeAccountKeys = (country, values) => {
|
|||
case 'PT':
|
||||
case 'ES':
|
||||
case 'SE':
|
||||
case 'CH':
|
||||
return { account_number: cleanedString(values[IBAN]) };
|
||||
case 'NZ':
|
||||
// NZ account number is typically presented in the format xx-xxxx-xxxxxxx-xxx
|
||||
|
|
|
|||
|
|
@ -299,6 +299,19 @@ const stripeSupportedCountries = [
|
|||
iban: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
// Switzerland
|
||||
code: 'CH',
|
||||
currency: 'CHF',
|
||||
addressConfig: {
|
||||
addressLine: true,
|
||||
city: true,
|
||||
postalCode: true,
|
||||
},
|
||||
accountConfig: {
|
||||
iban: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
// United Kingdom
|
||||
code: 'GB',
|
||||
|
|
|
|||
|
|
@ -469,6 +469,7 @@
|
|||
"PayoutDetailsForm.countryNames.AU": "Australia",
|
||||
"PayoutDetailsForm.countryNames.BE": "Belgium",
|
||||
"PayoutDetailsForm.countryNames.CA": "Canada",
|
||||
"PayoutDetailsForm.countryNames.CH": "Switzerland",
|
||||
"PayoutDetailsForm.countryNames.DE": "Germany",
|
||||
"PayoutDetailsForm.countryNames.DK": "Denmark",
|
||||
"PayoutDetailsForm.countryNames.ES": "Spain",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue