#malavandero-checkout-coupon

1 messages ยท Page 1 of 1 (latest)

lime jayBOT
random bison
#

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?

blissful kettle
#

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"
  }
}
random bison
#

malavandero-checkout-coupon

blissful kettle
#

We can't create the checkout session

random bison
#

let me take a closer look and see what i can find

blissful kettle
#

sure, thank you!

random bison
#

Quick question - which currency specifically are you trying to create the checkout session for? USD or EUR?

blissful kettle
#

In this case USD, but the coupon is in EUR

random bison
#

Can you try making the request again, but this time pass in currency: usd in your checkout session creation request?

blissful kettle
#

coupon.currency: usd or price.currency: uds?

random bison
blissful kettle
#

If the coupon currency and the price currency match, we can create the session with no problem

#

cs_test_a1tN3K18ZyUTDXoxK4F256scxCH1oD9TLimp8VsDP3b4CJm1AdhVKeEubM

random bison
#

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

blissful kettle
#

now works!

random bison
#

๐Ÿ‘

blissful kettle
#

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

random bison
#

๐Ÿ‘