#eric-promocodes-checkout
1 messages · Page 1 of 1 (latest)
no the request ID for the error, from https://dashboard.stripe.com/test/logs
req_jKWSTf7pqFxmL1
Sorry, that is not it. Let me find the right one.
That is when I was testing and not using the right promotion_code id.
req_77bEvdPQSI6SuI
That is the request id when I create the checkout session to allow promotion codes for this specific customer. When I enter the configured promotion code of: FLAVOREDBUTTER15 is when the error shows up.
looking
thanks
what is the ID of the promotion code you used ?
promo_1JsSKZEkKd5sVQXvMsRkZoIL
When I go to checkout with the request id I sent you and enter the promo code FLAVOREDBUTTER15 which should point the the promo code I sent I get the failure.
Any thoughts?
working across 15 threads sorry! looking now give me a sec
No problem. Thanks again for looking at this for me.
np! it is what we're here for
ok can repro on your test CheckoutSession with your Pomocode, thanks for sharing that so clearly, made it easy to repro
Now digging into what the issue is , somethign to do with how the Promocode was created (looking)
lemme ask internally in the meantime to have someone get a second pair of eyes on what I might be missing
Ok
looking with a coworker
👍
I create all the promotion_codes via the API, so I am not sure why this particular customer: cus_KTPpVVTntmAKkE has the issue.
Here is the request id I used when creating the promotion code: req_lqQJ8dkbbIVCLC
We're still digging for now, sorry will take a while
Can I ask you to create an entirely separate coupon/promo code with the same setup?
We want to see if there's something wrong with that specific promo code
Yes.
Done. CouponId: 15PERCENTOFF Promo code: PROMO15 for the same customer_id: cus_KTPpVVTntmAKkE.
The request id for the promo creation: req_KsgscxK9lX54oI
Should I go to Checkout and see if this promo code works for this customer?
yes please
same we're unfortunately completely stuck and can't figure out what's causing this unfortunately
We have an inkling that once a customer-facing code is redeemed, it can't be redeemed again but we're not sure. You will have to report this to our support team directly as a bug: https://support.stripe.com/contact
Ok. I am back. I will create a support ticket. I have seen this behavior before while doing my development for this feature and I can't figure out the pattern.
@gray kraken here's how to repro (I just did)
1/ Create customer and get cus_A
2/ Create a Coupon
3/ Create a PromotionCode with code MYCODE with redemption limited to 1 and then to specific customer cus_A
4/ Create Checkout Session for cus_A
5/ Redeem MYCODE => gets inactive
6/ Create new PromotionCode with code MYCODE and redemption limited to 1 and then to specific customer cus_A
7/ Create Checkout Session for cus_A
8/ Try to redeem MYCODE => errors because it's already consumed for that customer
Question: In step 5 above, did you apply MYCODE as the promo code and complete the checkout or abandon the checkout?
complete it
yours is similar, you re-used your MYCODE after it became inactive for redemption
Ok. I cannot see where I did that, maybe it was done earlier in my testing.
I wonder what the expected behavior should be? Should the API error when creating the new promo code with the same code in step 6? Or should it work since the previous code was inactivated?
it's tricky because you can put many customers on a promotion code. But I agree it's confusing and we should investigate, so reporting to our support team will help
I just explained how to repro since we figured it out
Ok. I am writing up the ticket now. I will include your steps above.
Thank you!