Skip to content

Commit

Permalink
Merge pull request #1371 from sharetribe/add-new-stripe-countries
Browse files Browse the repository at this point in the history
Add new stripe countries
  • Loading branch information
OtterleyW authored Oct 20, 2020
2 parents 7feaa1a + a7941b0 commit d1663bf
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ way to update this template, but currently, we follow a pattern:

## Upcoming version 2020-XX-XX

- [add] Add new Stripe countires Bulgaria, Cyprus, Czech Republic, Malta and Romania to the
`StripeConnectAccountForm`. Also reorder BANK_CODE & BRANCH_CODE in UI to more logical order.
[#1371](https://github.com/sharetribe/ftw-daily/pull/1371)
- [fix] Don't pass protected data key through `ConfirmSignupForm` if protected data is empty.
[#1370](https://github.com/sharetribe/ftw-daily/pull/1370)
- [add] Update French translation file (Spanish and German translations have still missing keys).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export const BANK_ACCOUNT_INPUTS = [
TRANSIT_NUMBER,
INSTITUTION_NUMBER,
CLEARING_CODE,
BRANCH_NAME,
BRANCH_CODE,
BANK_NAME,
BANK_CODE,
BRANCH_NAME,
BRANCH_CODE,
SORT_CODE,
ROUTING_NUMBER,
ACCOUNT_OWNER_NAME,
Expand Down Expand Up @@ -165,6 +165,9 @@ export const mapInputsToStripeAccountKeys = (country, values) => {
switch (country) {
case 'AT':
case 'BE':
case 'BG':
case 'CY':
case 'CZ':
case 'DK':
case 'EE':
case 'FI':
Expand All @@ -176,9 +179,11 @@ export const mapInputsToStripeAccountKeys = (country, values) => {
case 'LV':
case 'LT':
case 'LU':
case 'MT':
case 'NL':
case 'PL':
case 'PT':
case 'RO':
case 'SK':
case 'SI':
case 'ES':
Expand Down
42 changes: 41 additions & 1 deletion src/stripe-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const defaultMCC = '5734';
Stripe only supports payments in certain countries, see full list
at https://stripe.com/global
You can find the bank account formats from https://stripe.com/docs/connect/payouts#formats
You can find the bank account formats from https://stripe.com/docs/connect/payouts-bank-accounts
*/

export const stripeCountryDetails = [
Expand Down Expand Up @@ -50,6 +50,14 @@ export const stripeCountryDetails = [
iban: true,
},
},
{
//Bulgraia
code: 'BG',
currency: 'BGN',
accountConfig: {
iban: true,
},
},
{
// Canada
code: 'CA',
Expand All @@ -60,6 +68,22 @@ export const stripeCountryDetails = [
accountNumber: true,
},
},
{
//Cyprus
code: 'CY',
currency: 'EUR',
accountConfig: {
iban: true,
},
},
{
// Czech Republic
code: 'CZ',
currency: 'CZK',
accountConfig: {
iban: true,
},
},
{
// Denmark
code: 'DK',
Expand Down Expand Up @@ -171,6 +195,14 @@ export const stripeCountryDetails = [
iban: true,
},
},
{
// Malta
code: 'MT',
currency: 'EUR',
accountConfig: {
iban: true,
},
},
{
// Mexico
code: 'MX',
Expand Down Expand Up @@ -219,6 +251,14 @@ export const stripeCountryDetails = [
iban: true,
},
},
{
// Romania
code: 'RO',
currency: 'RON',
accountConfig: {
iban: true,
},
},
{
// Singapore
code: 'SG',
Expand Down
5 changes: 5 additions & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,10 @@
"StripeConnectAccountForm.countryNames.AT": "Austria",
"StripeConnectAccountForm.countryNames.AU": "Australia",
"StripeConnectAccountForm.countryNames.BE": "Belgium",
"StripeConnectAccountForm.countryNames.BG": "Bulgaria",
"StripeConnectAccountForm.countryNames.CA": "Canada",
"StripeConnectAccountForm.countryNames.CY": "Cyprus",
"StripeConnectAccountForm.countryNames.CZ": "Czech Republic",
"StripeConnectAccountForm.countryNames.CH": "Switzerland",
"StripeConnectAccountForm.countryNames.DE": "Germany",
"StripeConnectAccountForm.countryNames.GR": "Greece",
Expand All @@ -928,12 +931,14 @@
"StripeConnectAccountForm.countryNames.LT": "Lithuania",
"StripeConnectAccountForm.countryNames.LV": "Latvia",
"StripeConnectAccountForm.countryNames.LU": "Luxembourg",
"StripeConnectAccountForm.countryNames.MT": "Malta",
"StripeConnectAccountForm.countryNames.MX": "Mexico",
"StripeConnectAccountForm.countryNames.NL": "Netherlands",
"StripeConnectAccountForm.countryNames.NO": "Norway",
"StripeConnectAccountForm.countryNames.NZ": "New Zealand",
"StripeConnectAccountForm.countryNames.PL": "Poland",
"StripeConnectAccountForm.countryNames.PT": "Portugal",
"StripeConnectAccountForm.countryNames.RO": "Romania",
"StripeConnectAccountForm.countryNames.SE": "Sweden",
"StripeConnectAccountForm.countryNames.SI": "Slovenia",
"StripeConnectAccountForm.countryNames.SK": "Slovakia",
Expand Down

0 comments on commit d1663bf

Please sign in to comment.