#guidoleonardolavalle_40525
1 messages · Page 1 of 1 (latest)
What kind of error are you looking to handle? Checking in to this
Errors related with the credit card which will reject the payment confirmation
The embedded Checkout page will handle and surface those errors to the customer so I don't think we have a callback for that. Is there something you are trying to do with those errors?
I just want to know if something went wrong during the payment to offer the customer a free offer without paying, it is not important the reason why the payment confirmation failed
Unfortunately it looks like we don't support that at the moment. I think you'd need to move to using a custom elements form with the PaymentElement for that. You may be able to do something by listening to payment_intent.payment_failed events but I'm actually not sure if those are emitted here or and of course that would be much harder to correlate with an active session to know who to display the offer to
I understand, well, thanks for your time and responses, I appreciate your help. Have a nice day.