#daxiang28-checkout-promocodes

1 messages · Page 1 of 1 (latest)

upper grail
#

Hello! Do you have an example request ID I can take a look at?

sly sandal
#

is this it? cs_live_b1L4vY9BUjJlrTqcjadqFB9B31EW5VVv7GQwBRc8xuDenMdOKM1u5sUUYp

upper grail
#

That works! Let me take a look

#

Do you also have the specific promo code that you were trying to use?

sly sandal
#

THANKYOUFREE

#

side note, i initially wanted to have a 100% coupon, but was having issues earlier but recall that i couldn't discount 100% because it had to meet a transaction minimum

upper grail
#

Yeah with Checkout Sessions in payment mode you have to meet the minimum transaction amount - but can you give me more details on where you're seeing this invalid_request_error? I'm not seeing any attempt to actual pay/confirm cs_live_b1L4vY9BUjJlrTqcjadqFB9B31EW5VVv7GQwBRc8xuDenMdOKM1u5sUUYp, so more details on where specifically you're seeing the error would be helpful

sly sandal
#

Got the following error: {
"error": {
"code": "promotion_code_invalid",
"message": "This code is invalid.",
"type": "invalid_request_error"
}
}

upper grail
#

I believe the issue here is that the THANKYOUFREE promo code is configured to only be used with first time customers

sly sandal
#

the customers that have tried it haven't completed an order yet

#

I do create the customer on the backend when generating the session URL so that i can populate the email address

upper grail
#

For cs_live_b1L4vY9BUjJlrTqcjadqFB9B31EW5VVv7GQwBRc8xuDenMdOKM1u5sUUYp, that customer does have at least one successful payment associated with them, which is why its failling

sly sandal
#

I also tried this promo code that doesn't have a first time user restriction: NEXTDOORFREE22

#

Got this event though the Card method is selected: ```{
"error": {
"code": "amount_too_small",
"doc_url": "https://stripe.com/docs/error-codes/amount-too-small",
"message": "Amount must be no less than $50.00 usd for Affirm payment method.",
"param": "amount",
"type": "invalid_request_error"
}
}

upper grail
#

Can you show me where you're seeing that?

sly sandal
upper grail
#

thanks for all that context - I'm able to reproduce it on my own account as well, so let me do some more digging and to see why this is happening

vocal laurel
sly sandal
#

Ok thanks. Is there a recommendation that I can provide to customers to get around this?

vocal laurel
#

what you can do is upgrade to the latest API version

#

that will make us create the PaymentIntent later in the flow and it should get around the issue