I´m a Stripe beginner and I integrated the (really nice) Stripe checkout form into my Ionic App. Everything is working, the fields get validated and the I get the token and data in the callback.
I have more of an general question:
When everything is validated and the credit card token is generated, the button changes to green and the form closes. But that does not mean that the payment was successful.
Depending on a one-time or recurring payment, I need to send the data to my server, create a customer/charge/plan/subscription and there something can go wrong.
But in the end the user thinks everything is fine. I saw that other people are sending mails if something goes wrong.
What`s the best way to handle such an error?