#.optout

1 messages · Page 1 of 1 (latest)

cursive moonBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

manic iron
#

Well succeeded is a terminal state so after that there'd be no payment_intent.* events

wind zinc
#

sorry i phrased incorrectly

#

which failure event guarantees that there won't be a suceeded event later

manic iron
#

Depends what you mean by a failure event

#

What payment UIs are you using? What's the actual problem you're trying to solve?

wind zinc
#

what i am asking is if a payment_intent.canceled fires or a payment_intent.payment_failed fires is it possible that a payment succeded event will fire for the same payment intent after one of those

manic iron
#

No for .canceled, that is a terminal state

#

An intent can succeed after .payment_failed yes

wind zinc
#

ok thank you

#

and when will canceled fire?

manic iron
#

If the Payment Intent is canceled which, depending on your integration, is mostly a manual thing triggered by you

wind zinc
#

ok thank you, so if payment failed triggers due to cart declined can I still recieve a payment:intent succeded after or that only happens with methods like paypal

manic iron
#

Yes the intent can succeed after failure. For example, initial payment fails due to a decline. Customer retries payment with a new card, your integration re-confirms the same intent and it succeeds

wind zinc
#

oh ok but my integration would create a new intent in this case

manic iron
#

Then that should answer your question 🙂

wind zinc
#

but with paypal and other external methods can a payment intent succeded aftert failing if for example the user reuses the same payment link after it failed the first time

manic iron
#

What payment UIs are you actually using? Because a lot of this will depend on that

#

You say 'payment link', what is that exactly?

wind zinc
#

payment element

manic iron
#

Like, yes the old intent that failed can be re-confirmed and succeed. But if your integration discards them and creates a new intent then that should never happen

#

If it's a concern, then explicitly cancel the Payment Intent

#

But overall you should just re-confirm the same intent following the failure

wind zinc
#

ok thank you and is there a way to make the payment intent expire after some time

cursive moonBOT
manic iron
#

No, you'd need to implement that in your integration and call the /cancel endpoint

wind zinc
#

ok thank you

#

that's everything