#kasvith-checkout-zero
1 messages · Page 1 of 1 (latest)
Can you share the request ID for coupon creation or just checkout creation?
we generated the checkout request in backend, it shows the UI for applying promo codes
here is the session
checkout session
@past ridge
checking..
Your coupon uses duration which only applies to Checkout Session for subscriptions
https://stripe.com/docs/payments/checkout/discounts#:~:text=The coupon object adds discounts to both one-time payments and subscriptions. Some coupon object parameters%2C like duration%2C only apply to subscriptions.
The checkout session you've created is for one-time payment
huh that's indeed confusing
Can you run a quick test by creating a coupon without setting a duration?
ty
Okay @glossy estuary the issue is your API version
https://stripe.com/docs/payments/checkout/no-cost-orders calls this out: To process no-cost orders using the Checkout API, make sure you’re on API version 2023-08-16 or later.
Looks like you are using 2022-11-15 right now
kasvith-checkout-zero
@finite solstice how can we upgrade api version?
Be really careful about upgrading, you should make sure you do extensive testing first
we are currently using the stripe nodejs sdk
Sure, so you should test with the newer version in test-mode first by versioning your requests: https://stripe.com/docs/api/versioning
Then once you are comfortable you can upgrade the default on your account via your Dashboard, or you can version your livemode integration to the new API version as well.
cool thank you