#jerome1580

1 messages ยท Page 1 of 1 (latest)

past coveBOT
mild bramble
#

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?

tight fjord
#

yes

mild bramble
#

Can you give me the ID of the Promotion Code?

tight fjord
#

sure...

#

promo_1O4uBGDz9IvZrzgCF9prBZmG

#

one of the test mode ones

#

but live or test are doing the same

#

promo_1O4tF8Dz9IvZrzgCXZyjGtmd

mild bramble
#

Looking...

tight fjord
#

is a live one

#

thank you

past coveBOT
tight fjord
#

๐Ÿ™‚

#

Any luck?

mild bramble
#

Looks like the issue is the API version you're using.

tight fjord
#

ah

mild bramble
#

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.

tight fjord
#

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?

mild bramble
#

The API version is different from the Node library version.

#

Although the Node library I think is pinned to a specific API version now.

tight fjord
#

ok

#

Very odd that it was working totally fine before

mild bramble
#

And v14.0.0 is pinned to a later version.

#

So you would need to upgrade to at least v13.0.0.

tight fjord
#

ok, where am I specifying that to get that version?

mild bramble
#

Probably in your package.json file.

tight fjord
#

ok, so even a 50% coupon is doing the same exact thing

#

nope, nevermind

#

lol

#

my bad

#

that one worked

mild bramble
#

I was going to say, I just tested and it seems to work. ๐Ÿ˜…

tight fjord
#

haha ๐Ÿ™‚

mild bramble
#

Maybe you were using one that had reached max redemptions at first?

tight fjord
#

no, I made a bunch of coupons/promotional codes when it stopped working

#

The 100% ones were definitly working before