#Equilibrium

1 messages · Page 1 of 1 (latest)

tawdry shuttleBOT
subtle talon
#

If using the Payment Element, the best thing to do is to detect the customer's currency via the browser and create the payment intent with that currency

#

There's not an automatic solution with the Payment Element specifically

heavy vine
#

It seems easier when using the checkout, and thank you for the link

Our case is the "Payment element" - we were thinking of adding a currency dropdown ( your solution of detecting it is good too ). does that mean we have to use some API to convert the USD price to EUR for example before creating a payment intent with EUR currency?

const USDCost = 5;

const EURCost = USDCost * CONVERSION_VARIABLE;

stripeInstance.paymentIntents.create({
  currency: "EUR",
  amount: EURCost,
});

subtle talon
#

Yeah that's correct

#

We don't provide an endpoint to do that though

heavy vine
#

No worries, do you have any additional pointers regarding this point? I just want to confirm that its the correct approach for our use case and In case you know any 3rd party API Stripe's customers use for conversion

I would very much appreciate that

subtle talon
#

Unfortunately I don't have a recommendation to give on that as I'm not sure what many folks use

#

You'd need to do the research on it

heavy vine
#

Well noted, and the manual conversion approach is the way to go? just to confirm it

subtle talon
#

If using Payment Element, yes