#.optout
1 messages · Page 1 of 1 (latest)
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.
- optout-connect-payout, 18 hours ago, 16 messages
- .optout, 1 day ago, 13 messages
Well succeeded is a terminal state so after that there'd be no payment_intent.* events
sorry i phrased incorrectly
which failure event guarantees that there won't be a suceeded event later
Depends what you mean by a failure event
What payment UIs are you using? What's the actual problem you're trying to solve?
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
No for .canceled, that is a terminal state
An intent can succeed after .payment_failed yes
If the Payment Intent is canceled which, depending on your integration, is mostly a manual thing triggered by you
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
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
oh ok but my integration would create a new intent in this case
Then that should answer your question 🙂
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
What payment UIs are you actually using? Because a lot of this will depend on that
You say 'payment link', what is that exactly?
payment element
sorry i mean't paypal link
It's a moot point though right? If your integration creates a new intent after a failure?
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
ok thank you and is there a way to make the payment intent expire after some time
No, you'd need to implement that in your integration and call the /cancel endpoint