#nathan-blkout_unexpected
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245008658992074902
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! what is the promo code ID promo_xxx ?
Here it's this one : promo_1PLQC7KybFNJTpVVuxtHKYzv
I tried also with it, and it isn't accepted
it's because you're on an older API version which requires opting in to allow Checkout to create a $0 payment when a coupon is 100% off
https://docs.stripe.com/payments/checkout/no-cost-orders you have to be using at least 2023-08-16
I think also you can opt in on older versions via https://dashboard.stripe.com/settings/checkout
Okay i'm here again
We've upgraded the api version on the last one, and tried again, it doesn't work
We ony allow customers to add coupon inside the checkout, not before the creation of this one, and there we still got the same problem
On the last screen, in english it's the parameter to allow order with zero cost
Which is activated
does it happen when you create a new CheckoutSession?
I'm a little concerned you updated your API version so quickly, there are many breaking changes going from where you were to today, but putting that aside for now
I know, we're dealing with the new api version on a new website we're doing
As i'm seeing, there's no changing by our system on our actuel production website so it's okay
Don't worry
ok. Well anyway the promo code doesn't apply because you have the "first time transaction" restriction on it, and this is not the first transaction for the Customer object you passed to the Checkoutsession.