#mmilleruva

1 messages ยท Page 1 of 1 (latest)

rose questBOT
blissful sonnet
#

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

rare bridge
#

๐Ÿ‘ 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

blissful sonnet
#

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)

rare bridge
#

๐Ÿ‘ Makes sense thank you