Sometimes (maybe 1 in 50 cases) the customer’s payment is successful, but the rest of the workflow doesn’t get executed. Any idea how to make it more robust?
My workflow is as follows:
Charge the current user $X
Create a new Transaction thing - Only when result of Step 1’s Captured is “yes”
In these rare cases, Step 2 doesn’t get executed even though the transaction was successful.
I’d use a webhook. The pain part is just learning how that all works. But I promise once you figure it out, you’ll always fall back to it. I haven’t used Stripes Webhooks yet, but I have changed to webhooks on another API I use and life is really good. And the best part is I can always “poll” the API just to do a double check.