Add New Currency - XiSZ/bookcars GitHub Wiki
By default, only USD, EUR, GBP and AUD currencies are available but you can add other currencies if you want.
If you choose to use Stripe Payment Gateway, here is the list of all supported currencies.
If you choose to use PayPal Payment Gateway, here is the list of all supported currencies.
ExchangeRatesAPI is used to convert prices from base currency to end user currency.
Frontend
To add a currency to the frontend, open frontend/src/config/env.config.ts and add the three-letter ISO 4217 alphabetic currency codes, e.g. "USD" or "EUR" and their symbols to CURRENCIES
constant.
That's it! Once added the new currencies will show up in the header menu of the frontend and the end user can switch between all available currencies.
Mobile App
To add a currency to the mobile app, open mobile/config/env.config.ts and add the three-letter ISO 4217 alphabetic currency codes, e.g. "USD" or "EUR" and their symbols to CURRENCIES
constant.
That's it! Once added the new currencies will show up in the header menu of the mobile app and the end user can switch between all available currencies.
Base Currency
From the admin dashboard, the base currency is used to store all prices. By default, it is USD but you can change it from VITE_BC_CURRENCY
setting in backend/.env, VITE_BC_BASE_CURRENCY
in frontend/.env and BC_BASE_CURRENCY
in mobile/.env.