#nathan-blkout_unexpected

1 messages · Page 1 of 1 (latest)

sonic trenchBOT
#

👋 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.

mystic radish
#

Here are screenshots :

wet apex
#

hi! what is the promo code ID promo_xxx ?

mystic radish
#

Here it's this one : promo_1PLQC7KybFNJTpVVuxtHKYzv

#

I tried also with it, and it isn't accepted

wet apex
#

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

mystic radish
#

I'll check with my backend, i'll be right back

#

Thank you for the path

wet apex
mystic radish
#

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

wet apex
#

does it happen when you create a new CheckoutSession?

mystic radish
#

Yes

#

From scratch

wet apex
#

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

mystic radish
#

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

wet apex
#

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.

mystic radish
#

Okay you're right 🥲

#

Wasn't seeing that option ahaha

#

Feel idiot there

#

Thank you a lots !!