Displaying subscription price in local currency in Spark
How do I get Laravel Spark to show the subscription price in the local currency of the user's country?
We are a UK-based firm. We have the following environment variables set
CASHIER_CURRENCY=GBP
CASHIER_CURRENCY_LOCALE=en
In Paddle, we have a subscription plan set up with GBP 240 as the default price, and NZD 500 set up for users in New Zealand. When a user in New Zealand goes into the Spark dashboard to subscribe, the price of the subscription is displayed as £240/year (i.e. in GBP). If they choose to subscribe, having given their location as New Zealand, Paddle charges them NZ$500.
Although Cashier provides a method to retrieve subscription prices in local currency, I cannot find any settings or methods documented for how to display the plan's price in NZD in the Spark dashboard when accessed from New Zealand.
Tracing the code through, it does display the price in the location defined in the IP address - but it uses the IP address of the server, not the client.
Our software is hosted in Ireland, so I set up a price in Paddle in EUR, and when I went to the billing portal, the price in Euro was displayed.
Unless anyone knows how to force the behaviour of the software, I shall report this as a defect to Laravel.