#malavandero-checkout-coupon
1 messages ยท Page 1 of 1 (latest)
Hello! Can you give me some more details? What specifically seems to go wrong? Do you have an example Checkout Session ID I can take a look at?
Hi Karbi, this is the error we are getting
"error": {
"message": "The coupon default currency (usd) does not match the line item currency (eur).",
"param": "discounts[0]",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_8jbcN6oYCrCc98?t=1693927833",
"type": "invalid_request_error"
}
}
malavandero-checkout-coupon
We can't create the checkout session
let me take a closer look and see what i can find
sure, thank you!
Quick question - which currency specifically are you trying to create the checkout session for? USD or EUR?
In this case USD, but the coupon is in EUR
Can you try making the request again, but this time pass in currency: usd in your checkout session creation request?
coupon.currency: usd or price.currency: uds?
Neither - you'd add it to your checkout session creation request https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-currency
If the coupon currency and the price currency match, we can create the session with no problem
cs_test_a1tN3K18ZyUTDXoxK4F256scxCH1oD9TLimp8VsDP3b4CJm1AdhVKeEubM
No, that's not what I'm talking about - I'm saying that with multi-currency you need to pass in a currency to the Checkout Session (not the price our coupon)
If you don't pass in a currency when you create the Checkout Session then we don't know which currency you want when there are multipel options
now works!
๐
So, in addition to the price and the coupon, I have to previously choose the user's currency to create the checkout session
thank you for your help
Then I will do some more tests, if I need help I know where to come. Thank you
๐