#mmilleruva
1 messages ยท Page 1 of 1 (latest)
The approach you've shared makes sense ๐
The reason we recommend folks to listen to webhook events is because some payment methods are delayed notification so they can fail asynchronously
Listening to webhooks will allow you to handle that scenario
๐ Great, yeah if a payment fails async, I can just undo the changes I made in the db. Thank you
Do you recommend saving the payment_intent or should I be saving the charge in my db or it doesn't really matter
You can store PaymentIntent as a reference as there could be multiple charges related to it (if there are any failed payment attempts before a successful one etc)
๐ Makes sense thank you