#sh3ft-currency-mismatch

1 messages · Page 1 of 1 (latest)

fossil cryptBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

  • sh3ft, 2 days ago, 6 messages
#

sh3ft-currency-mismatch

digital berry
#

Can you share the payment intent id where this happened?

hard forge
#

pi_3ONGj5B6P9f0Kuge0xr4aRbn_secret_C5P7hMkOaKHYEa4XGc69iaxKq

digital berry
#

The issue is the customer you passed is a usd customer

#

So you need to pass usd in the frontend to match the currency

hard forge
#

const options: StripeElementsOptions = {
mode: 'subscription',
amount:
currentProduct?.requested_currency?.unit_amount ??
currentProduct?.priceAmount,
currency:
currentProduct?.requested_currency?.currency ?? currentProduct?.currency,
}

#

This is what I'm currently doing is that what is breaking things?

digital berry
#

Yeah. You're setting the currency to eur clientside

#

That customer is a usd customer

#

So you need to set usd in StripeElementsOptions

hard forge
#

Can you share an example please

#

The default is in usd but I want to switch it to eur how can I do that?