Step 01
To enable multi-currency, install this plugin and read its README.md
to understand how multi-currency works: nxtbn freecurrencyapi
Step 02
Update this theme: nxtbn-storefront-next-cash-on-delivery-example
There will be two options during checkout: checkout as guest and signup after checkout. Update the theme accordingly.
Step 03
Integrate Stripe. We have implemented the Stripe plugin, so install it and read its documentation for more info: nxtbn Stripe Payment Link
Step 04
In the theme, implement the multi-currency feature. For example, in a dropdown there will be these currencies: AUD, JPY, USD, INR (Add what Stripe supports). During every request, set this key Accept-Currency
with the currency code in the axios header. The user's currency code can be stored in cookies. Ensure that the default currency in the settings is always USD.
Step 05
Place an order by switching to JPY and INR and check the calculations. To verify the calculations, hit this API. Ensure the calculations are correct. If they are not, there may be something wrong with the order or the payment gateway-related plugin, which you need to debug.
This API will show you order stats. Open this in a browser to check if everything works. Keep track of how much you ordered and how much it is saving. Ensure the amount is stored as expected: Order Dashboard API
If you need more info, please reach out to me anytime.