#jerome1580
1 messages ยท Page 1 of 1 (latest)
They were working all just fine until about an hour ago. I'm setting the stripe hosted payment page up with stripe.checkout.sessions.create.
Hello! So you're seeing an error on the Checkout page?
yes
Can you give me the ID of the Promotion Code?
sure...
promo_1O4uBGDz9IvZrzgCF9prBZmG
one of the test mode ones
but live or test are doing the same
promo_1O4tF8Dz9IvZrzgCXZyjGtmd
Looking...
Looks like the issue is the API version you're using.
ah
You're trying to take 100% off, but that's only supported with API version 2023-08-16 or later.
You're using an API version from 2022.
oh really? How do I get the latest version? I just did an npm install of it
How do I specify that version when installing?
The API version is different from the Node library version.
Although the Node library I think is pinned to a specific API version now.
See here for details about the API version: https://stripe.com/docs/upgrades#2023-08-16
Ah, yeah, stripe-node v13.0.0 is pinned to that version: https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#1300---2023-08-16
And v14.0.0 is pinned to a later version.
So you would need to upgrade to at least v13.0.0.
ok, where am I specifying that to get that version?
Probably in your package.json file.
ok, so even a 50% coupon is doing the same exact thing
nope, nevermind
lol
my bad
that one worked
I was going to say, I just tested and it seems to work. ๐
haha ๐
Maybe you were using one that had reached max redemptions at first?