#nkusibojoski-charge-events

1 messages ยท Page 1 of 1 (latest)

sacred acorn
#

Hey! Are you using auth and capture?

last carbon
#

I'm not using auth. When I create Payment Intent I set capture_method: 'manual', to be able to do additional checks

sacred acorn
#

Was just checking you were using that flow as otherwise charge.captured is not relevant

#

charge.succeeded will fire when the Charge/PI is created. charge.captured will fire when you make the API request to capture the opayment

last carbon
#

Will charge.succeeded guarantee that there is enough funds in the card so I can call paymentIntents.capture ?

#

Where is the right place to call paymentIntents.capture ๐Ÿ™‚ ?

sacred acorn
sacred acorn
last carbon
#

Sure, this is the way I create PI

sacred acorn
#

Yep, so at that point charge.succeeded won't fire (as you're not passing confirm: true)

last carbon
#

Hmmm.. strange, I can see that event in logs.
Can you please explain me what is confirm: true?

sacred acorn
last carbon
#

Thank you ๐Ÿ™

sacred acorn
#

So generally:

  • charge.succeeded happens when the PI is confirmed.
    *charge.captured happens after, when the PI is captured.
last carbon
#

great, thank you ๐Ÿ˜Š

sacred acorn
#

Np!