#Genoir
1 messages · Page 1 of 1 (latest)
Hi there!
hi!
How do you accept payments? Checkout Session, Payment Element, something else?
we are set to checkout session
And you want that after three failed payment attempts on the Checkout Session to redirect the use somewhere else?
yes, 3 consecutive failed payments we want it to go to a failed payment page customised with information
we save the information that they have input to allow them to go back later in their account area to make payment
i.e. later with a different card
effectively 'saves to basket' for want of a better term
Since it's a Checkout Session, you have a limited control over the experience. You could for example expire the session if you detect three failed attempts with https://stripe.com/docs/api/checkout/sessions/expire but user wouldn't be redirected to your page.
ok that is unfortunate, is there any other way to do it?
but thank you for the information
I don't think so with Checkout Session. You should use the Payment Element to have more control over the experience.
You can learn more about this here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
you've been really helpful, thank you