#moanie-charge-vs-payment_intent

1 messages · Page 1 of 1 (latest)

green ginkgo
#

Hello! 👋

#

So I take it you are taking payments with PaymentIntents and getting both of thee events?

#

So every time a PaymentIntent tries to take a payment, it will create a Charge. You'll likely want to deal with the PaymentIntent based webhooks

#

Both of them refer to the same user payment succeeding. Depending on what you want to do you can probably just handle one of them

#

Yes, either could work for that but payment_intent.succeeded would probably be the recommended one

#

Exactly

#

You can cancel it from when it is created until it is processing or succeeded

#

Also if you are using Checkout Sessions, you can expire them requires_payment_method, requires_capture, requires_confirmation, or requires_action.

#

For those states?