Regional currencies
Let’s try a very common scenario first - you sell into different countries.
The red t-shirt has a regular price of $15.70.
What happens when you make the same call but indicate you are from France? We do this by updating the sdk gateway telling it to use the language: 'fr'
and currency: 'EUR
.
client.ts
export const EPCC = gateway({
...
language: 'fr',
currency: 'EUR',
})
The red t-shirt now has a price of €14.05.
Note the product name, description are now all displayed in French.
Try changing the requesting region to Spain using the language code es
. Note, the currency stays the same but the language changes.