As my app gets more usage, I’ve had a couple of cases where there was “crash” of some kind during the execution of the server action which implements my Stripe based payment process.
This meant that the Stripe payment was processed but my server action stopped working before my app got to record the payment. This resulted in the user going back into my booking form and paying a second time, but only a record in my app of a single payment.
I created the app before there was a Stripe interface in Wappler, so I have one big server action which processes the Stripe payment AND creates all the database records in my app.
I’m wanting to find a fix for this scenario, and I’d love to know how others have structured their checkout server actions to potentially protect against this situation!
Best wishes,
Antony.