Add Stripe support for Switzerland

This commit is contained in:
Jenni Nurmi 2018-12-05 14:58:37 +02:00
parent c79fb7e141
commit d98d5d8f62
3 changed files with 15 additions and 0 deletions

View file

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

View file

@ -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',

View file

@ -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",