Add geo-pricing split test for enabling LATAM currencies (#13663)

* Implement LATAM geo-pricing split test

* Hide Paypal if currency is one of INR, COP, CLP, PEN

* Only send the LATAM/INR banner events when banner is rendered

* Workaround in Subscription dashboard for CLP not having minor units

GitOrigin-RevId: a677086a7762900563558126d2f81a4c57bbe9d7
This commit is contained in:
Thomas
2023-07-17 11:01:10 +00:00
committed by Copybot
parent 8efac32c8a
commit c1ec3044d7
12 changed files with 239 additions and 25 deletions
@@ -19,11 +19,21 @@ const currencyMappings = {
SE: 'SEK',
SG: 'SGD',
IN: 'INR',
BR: 'BRL',
MX: 'MXN',
CO: 'COP',
CL: 'CLP',
PE: 'PEN',
}
const validCurrencyParams = Object.values(currencyMappings).concat([
'EUR',
'INR',
'BRL',
'MXN',
'COP',
'CLP',
'PEN',
])
// Countries which would likely prefer Euro's