#krishna_awate
1 messages · Page 1 of 1 (latest)
Which integration type are you using? Checkout Session, Payment Intent with Payment Element.. etc
Payement element.
When you create the Payment Intent, the currency in the request can be set to USD
There would be multiple currecny options Like INR, CAD, SGD.
Do you mean you want to let customer to choose currency out of from a list?
Yes.
That would need an additional screen to present before embedding PaymentElement AFAIK
The PaymentElement expects one currency to initialize
what ever currency customer choose, I want to see it in USD on my website.
Not sure how you would design that. Ultimately you want to receive what your customer chose, then convert into USD amount, then pass that amount alongside USD as a currency when you initialize PaymentElement
How can I convert selected currency in USD.
You would want to look at some 3rd party API. We don't have such an API unfortunately
Alternatively, if your Stripe account has an USD bank, you can accept as many currency as you can in PaymentElement, and eventually it will convert to USD in your bank account
My stripe account has not USD bank.
If I allow customer to select multiple currency and then I convert it to USD and save in database. But when stripe automatically settle the amount to base currency then there will be diffrence. As I think.
Sorry I didn't follow. Which country your Stripe Account is? And what currency of its bank account?
My stripe account is Indian & Singapore.
Bank also Indian & Singapore
I have two accounts. Payment can come is any account depend on my code condition. But finally I have to show it in USD.
Okie I see, let's disregard about bank account etc. So yes if you want to show it in USD, you need a logic to convert any chosen currency from the customer to USD
And what about payement elemnet? should I allow same currecny choosen by user in Payment element. I mean in database I will save USD amount as seperate filed after convert and allow payement element to take same currecny as seleted by user.
PaymentElement needs currency to be determined first
Your database design is up to you 🙂 But after you decide the USD amount, then you can initialize PaymentElement following the Doc
I want your suggetion there would be two case
- Convert any currency in USD and send same to payement element.
- Convert any currecny in USD and save that amount in database and allow payement intent to take same currency as selected by user.
which one will be good.
In case 2, how will you reconcile your database (USD amount) vs Stripe balance (customer chosen currency)?
I think it will be probalematic in the long run
In case 2 I will use third party API to convert amuunt to USD & save same amunt in database as seperate field. But I will allow payment entent to take same currency as selected by user.
In this case what problem can come?
It's later on, that you need to keep track of the USD amount in database, separated field with the original amount in Stripe Dashboard. If you are condifent you can manage it well on your DB then it's fine. But let's say you database can be corrupted, damanged or loss, then you don't have the link information anymore.
I would suggest also put the converted USD amount in your PaymentIntent's metadata, so the information also lives in Stripe Dashboard
So If I do conversion in USD and send to payment intent that amount will it be better?
It's up to your business decision on how you would like to reconcile the payments. If the payment is collected and settle in USD, it might be lesser work on your side
Okay sir got it. Thank you so much.