#vart-checkout-coupon
1 messages · Page 1 of 1 (latest)
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.
- vartularena, 40 minutes ago, 43 messages
- vartularena, 2 hours ago, 8 messages
Hi, can you share the request id where this is happening? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Sure sorry just saw the message
This is the coupon id: req_OHb9cykBNUou1S
@dusk zephyr
Can you create a new Checkout Session so I can try to replicate this on my end?
Taking a look
The session expires in 3min though so not sure you will be able to access in time
I see that the code, https://dashboard.stripe.com/test/logs/req_qAqC7sWKzsKVZX is applicable for the products you're passing the Checkout Session creation. Trying to replicate this on my end in my test account.
Ok thanks
👋 I don't really understand what you are trying to do. Can you explain exactly the problem? Like you have a Session for $10 and a PromotionCode for $50? If so that'd be a full discount and $0 to pay right?
vart-checkout-coupon
Yes, I am fine with that. But it just says invalid promo code when I try to use that
It looks like the order proce needs to be more than the promo code amount
You want to read https://stripe.com/docs/payments/checkout/no-cost-orders
Yes but for that I have to make a 100% discount code. But that means they can use it for orders of any value.
I want to restrict it to 20$
no sorry you didn't read what I linked, or you skimmed
The example you shared is a 100% off discount because the PromotionCode is for a bigger discount than the total right? So that won't work unless you do what is at the top of that docs page that you missed (everyone does, so not just you)
To process no-cost orders using the Checkout API, make sure you’re on API version 2023-08-16 or later.
you are on a 3 years old API version before that, so any attempt to use a code that will lower the amount to $0 will fail
Got it. So it is only failing because of that? If I update to the latest API the amount going to 0$ will work out of the box?
yes
Ok thank you.
Is there a way for me to force the final amount to go down to $0.50?
To avoid upgrading the API as I am worried there might be a breaking change
no that is impossible
and there is not one breaking change, there are dozens of breaking changes
https://stripe.com/docs/upgrades you need to carefully audit this before making any chance