#itchtherightspot
1 messages · Page 1 of 1 (latest)
Hello Bismarck
Are you following as specific set of docs?
I am following this
https://stripe.com/docs/products-prices/manage-prices?dashboard-or-api=api#create-product
Okay using Products/Prices is only compatible with Stripe Checkout if you are taking one-time payments.
Are you familiar with Stripe Checkout?
Yes so it will be a 1 time payment
And no I am not familiar. I have watched a couple tutorials but haven't implemented yet
Okay well for Checkout the doc you want to look at for how to work with multiple currencies is: https://stripe.com/docs/payments/checkout/present-local-currencies
There are basically two options, where you either use Automatic currency conversion or you create Multi-curency Prices.
Ok I am a bit confused
I'd recommend taking a read through that doc and then circling back if you have specific questions
Sure, what are you confused about
I understand I can create multiple products
In my stripe account
For each product I attach a number of currencies.
That way it is easier for a cx to chose their currency in checkout profile
Does that make sense?
Kind of
What you really want to do is create a Price with multiple currencies
Then when your customer goes to the Checkout Session we will localize based on their location to show the correct currency
Ahh I see I see.
But in my situation I want to create a product that has 2 currencies. USD and NGN
So basically when an admin creates a product, I store the details in my DB and also stripe product details.
When a cx add items to their cart, the pricing would be in either USD or NGN.
Sure
When they are in checkout, the currency would be in their choice and since I already created the products in my stripe account, stripe already knows the currency. All it has to do is sum up (number of items * price)
Alright so this can be achieved. Is there any reference examples to creating a product with multiple currencies?
You are saying that when you redirect your customer to Checkout you are going to have your customer already decide which currency they want to pay in?
Or you want it to automatically present their local currency?
Correct
Okay well that's even easier. You just create multiple Prices (https://stripe.com/docs/products-prices/manage-prices?dashboard-or-api=api#create-price)... one for each different currency
Ok thank you for your help. Looks like my request can be handled. Is there a link to details for java apis?
I mean a reference docs?
Each of the code snippets in the docs has a Java snippet
To look at the different parameters available you would look at the API Reference: https://stripe.com/docs/api/products/create?lang=java
Not exactly what I was looking for but I think I got my question answered
Thank you
Sure
Enjoy the rest of you shift!
Appreciate it 🙂
This is what I was looking for hahaha
https://stripe.dev/stripe-java/com/stripe/param/ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.html
declaration: package: com.stripe.param, class: ProductCreateParams, class: DefaultPriceData, class: CurrencyOption, class: Tier