#legend_of_mr.dan
1 messages · Page 1 of 1 (latest)
In that case you want to capture the customer currency first, then send AJAX from frontend to backend to use that currency value
So, I need to create a product on Stripe and specify the price of the product before I can proceed?
No, for Checkout you can specify it on-the-fly
line_items.price_data https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Like this?
Yeah
However, when the payment link generated in this way is opened, it does not convert the currency to the currency used in the country where the current IP address is located
What I expect is that when this payment link is opened in China, the price corresponds to RMB, and in the UK, it is displayed in euros or pounds sterling