#n4jos_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/1242352798381772800
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Customer-facing promotion code should be entered in Checkout Session page, not coupon code: https://docs.stripe.com/payments/checkout/discounts#promotion-codes
Yes i explained my self badly i think look:
That is my coupon and my code
I have just created this checkout sesion:
Can you share the example Checkout Session ID (cs_xxx), so that I can take a look?
Ok wait a couple minutes
Thanks by the way
{
"id": "cs_test_b1baYheRCrtNrmf7ogZaRvKUeUb3AyJ208zgGK8yfZh87cNp46Exb6qqQD",
"object": "checkout.session",
Oops sorry i also dent you the object
but there is the session id
Does that work for you?
Checking it now
(meanwhile i will create an other sesion where i can actulay make the codeto work, but i have to send it in the api as a discount):
"id": "cs_test_a1WCBXUak95oVRrgEtgMzQjpVQIGFZkqViVMuZLHQGYLfR0fO1HBuiXe5B"
Can you share the promotion code ID (promo_xxx) in the screenshot as well?
Hi @rain valley I'm taking over this thread
Looks like you already applied the promro code on cs_test_a1WCBXUak95oVRrgEtgMzQjpVQIGFZkqViVMuZLHQGYLfR0fO1HBuiXe5B but you still want to use it again in cs_test_b1baYheRCrtNrmf7ogZaRvKUeUb3AyJ208zgGK8yfZh87cNp46Exb6qqQD
However, the promo code has its first_time_transaction set to true, which mean it can only be applied once.
Give me one minute i will check changing that variable of the promo code. Because i can actually ad a promo code by sending discounts[][coupon] = PRUEBA50
But when i add allow_promotion_codes = TRUE thoes not work.
got it... it was my mistake, i was doing everyhing right but that first_time_transaction was linked to a coustomer, and i did many other purchase with that customer in the past for testing.
Thanks a lot
That was my mistake
No problem. I'm glad to know that you manage to solve the problem by yourself.
Nah you helped me thank you jack