#eric-promocodes-checkout

1 messages · Page 1 of 1 (latest)

abstract sedge
#

hello, can you share the request ID for that error'ing request?

abstract sedge
gray kraken
#

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.

abstract sedge
#

looking

gray kraken
#

thanks

abstract sedge
#

what is the ID of the promotion code you used ?

gray kraken
#

promo_1JsSKZEkKd5sVQXvMsRkZoIL

abstract sedge
#

thanks looking

#

and you see the error when you enter it into Checkout right?

gray kraken
#

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.

gray kraken
#

Any thoughts?

abstract sedge
#

working across 15 threads sorry! looking now give me a sec

gray kraken
#

No problem. Thanks again for looking at this for me.

abstract sedge
#

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

gray kraken
#

Ok

abstract sedge
#

looking with a coworker

gray kraken
#

👍

gray kraken
#

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

ornate sierra
#

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

gray kraken
#

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?

ornate sierra
#

yes please

gray kraken
#

It works in checkout.

#

I have to step away for 10min.

ornate sierra
#

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

gray kraken
#

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.

ornate sierra
#

@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

gray kraken
#

Question: In step 5 above, did you apply MYCODE as the promo code and complete the checkout or abandon the checkout?

ornate sierra
#

complete it

#

yours is similar, you re-used your MYCODE after it became inactive for redemption

gray kraken
#

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?

ornate sierra
#

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

gray kraken
#

Ok. I am writing up the ticket now. I will include your steps above.

ornate sierra
#

Thank you!