Open Bastian opened 6 months ago
Hi @Bastian , That is good feedback. Thank you for raising it with us. I will discuss about this with the rest of my team and get back to you.
If you want to avoid problems with calls from servers you might want to add a property like customerIpAddressFromRequest: true
to opt in. Shouldn't be to hard to extend Paddle Billing API this way. I personally use https://github.com/pbojinov/request-ip in my node.js projects for this purpose.
Tell us about your feature request
To display localized prices, the price preview has a parameter
customerIpAddress
which can be set with the current IP of the customer. At the moment, the documentation suggests fetching the IP address from an external service like ipify.org. Since the request is sent from the client anyway (unlike the Admin API, which is usually "proxied" through the application backend), Paddle should be able to get the IP address directly from the request without having to specify it explicitly. This would also be consistent with the checkout, which does not have an option to specify an IP address, but still automatically selects the correct country and price for the user.What problem are you looking to solve?
Improving developer experience
Additional context
No response
How important is this suggestion to you?
Nice to have