#twiddlecoding_api
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/1273920241067622473
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
in the checkout
Could you please share a screenshot?
Where did you get this code from? It doesn't seem to be related to the one you shared in the Request req_D6dv7AL2ev47Sp
I had to include something in the request form.
It's one of the other generated codes
I generated 500 codes for this promo
for _ in range(500):
promotion_code = stripe.PromotionCode.create(
coupon='ZMH99H8B',
max_redemptions=1, # This ensures each promo code can only be used once
)
using python
I have tried several of them but they dont seem to work
Could you try using the code from the request you shared?
Could you please share the Checkout Session ID?
can it be derived from the url?
cs_live_b10VZYYatRGyiY6w481s69gq305rxHYsEfcaNjv6cCaeyGlAQaKOkhJByI
I see this error in the devtools
The Stripe API should be able to support 100% discounts...
Let me see
The only condition is using a recent API version, but I see that the Checkout Session was created with 2022-11-15 which is too old for this: https://dashboard.stripe.com/logs/req_4AQCHg2zKWOv9m
I see. So there is no way to add a 100 % discount for me now?
You can create the Checkout Sessions with a more recent API version, I see that you're setting the 2022-11-15 explicitly.
I'm creating the session from my node.js backend using the stripe library
You will need to update your stripe-node library.
Is it safe to do so or might it break something?
The version must be at least 2023-08-16: https://docs.stripe.com/payments/checkout/no-cost-orders
You can also set a version explicitly just for a specific request: https://docs.stripe.com/upgrades
Happy to help.