#torkise
1 messages · Page 1 of 1 (latest)
Happy to help, can you tell me more about the trouble that you are having?
Yes! I have a Product, and within this product I have some price obects. Each price has a main currencie (NOK), but also has added EUR, DOLAR, SEK and DKK. I was wondering how Stripe handles this? When I call the price with the API only the main currencie is returned.
Does Stripe handle this automaticly based on the users location or the main currencie of the credit card used?
So the problem can be sorted into two main issues.
-
I want to make sure that the value shown to the customer on our website is in the suited currency. The price is now fethched with the API, maybe I need to change that?
-
When the customer performs the payment, it should be done in the suited currency
Good question, checking in to how this shows up on the Price object.
Also to confirm, are you using Checkout or PaymentLinks?
Good question, I am a bit new to the repo. How would I check that?
For #1, this currency data will be in the currency_options property https://stripe.com/docs/api/prices/create#create_price-currency_options
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You will see code about creating checkout sessions https://stripe.com/docs/api/checkout/sessions/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Using checkout
Thats when creating a price, no? How is it vissible when getting the price object?
Only one currency in this response, no? https://stripe.com/docs/api/prices/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Also on the price object https://stripe.com/docs/api/prices/object#price_object-currency_options
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.