#nkusibojoski-charge-events
1 messages ยท Page 1 of 1 (latest)
I'm not using auth. When I create Payment Intent I set capture_method: 'manual', to be able to do additional checks
Yep, by passing that parameter you're essentially creating an authorisation/hold on the card: https://stripe.com/docs/payments/place-a-hold-on-a-payment-method
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
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 ๐ ?
It depends on your integration. Are you passing a payment_method during PI creation? Can you share an example Payment Intent?
In your backend/server
Sure, this is the way I create PI
Yep, so at that point charge.succeeded won't fire (as you're not passing confirm: true)
Hmmm.. strange, I can see that event in logs.
Can you please explain me what is confirm: true?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you ๐
So generally:
charge.succeededhappens when the PI is confirmed.
*charge.capturedhappens after, when the PI is captured.
great, thank you ๐
Np!