#twiddlecoding_api

1 messages ¡ Page 1 of 1 (latest)

undone pollenBOT
#

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

open terrace
#

ID of the promo is ZMH99H8B

#

It has 500 codes

tribal marsh
#

Hi, let me help you with this.

#

I get invalid code.
Where do you see this error?

open terrace
#

in the checkout

tribal marsh
#

Could you please share a screenshot?

open terrace
tribal marsh
#

Where did you get this code from? It doesn't seem to be related to the one you shared in the Request req_D6dv7AL2ev47Sp

open terrace
#

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

tribal marsh
#

Could you try using the code from the request you shared?

open terrace
#

sure

#

Same error, says it is invalid

tribal marsh
#

Could you please share the Checkout Session ID?

tribal marsh
#

I see this error in the devtools

#

The Stripe API should be able to support 100% discounts...
Let me see

open terrace
#

Isnt it possible to do a 100% discount?

#

I see

tribal marsh
open terrace
#

I see. So there is no way to add a 100 % discount for me now?

tribal marsh
#

You can create the Checkout Sessions with a more recent API version, I see that you're setting the 2022-11-15 explicitly.

open terrace
#

I'm creating the session from my node.js backend using the stripe library

tribal marsh
#

You will need to update your stripe-node library.

open terrace
#

Is it safe to do so or might it break something?

tribal marsh
open terrace
#

i SE

#

Sorry, I see

#

thank you for your assistance

tribal marsh
#

Happy to help.

undone pollenBOT