#krishna_awate

1 messages · Page 1 of 1 (latest)

inner sapphireBOT
fickle stump
#

Which integration type are you using? Checkout Session, Payment Intent with Payment Element.. etc

grave kelp
#

Payement element.

fickle stump
#

When you create the Payment Intent, the currency in the request can be set to USD

inner sapphireBOT
grave kelp
#

There would be multiple currecny options Like INR, CAD, SGD.

worthy goblet
#

Do you mean you want to let customer to choose currency out of from a list?

grave kelp
#

Yes.

worthy goblet
#

That would need an additional screen to present before embedding PaymentElement AFAIK

#

The PaymentElement expects one currency to initialize

grave kelp
#

what ever currency customer choose, I want to see it in USD on my website.

worthy goblet
#

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

grave kelp
#

How can I convert selected currency in USD.

worthy goblet
#

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

grave kelp
#

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.

worthy goblet
#

Sorry I didn't follow. Which country your Stripe Account is? And what currency of its bank account?

grave kelp
#

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.

worthy goblet
#

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

grave kelp
#

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.

worthy goblet
#

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

grave kelp
#

I want your suggetion there would be two case

#
  1. Convert any currency in USD and send same to payement element.
#
  1. 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.

worthy goblet
#

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

grave kelp
#

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?

worthy goblet
#

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

grave kelp
#

So If I do conversion in USD and send to payment intent that amount will it be better?

fickle stump
#

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

grave kelp
#

Okay sir got it. Thank you so much.