#honkotonk
1 messages ยท Page 1 of 1 (latest)
Hello ๐
PaymentIntents API creates a charge object underneath to represent charging a payment method
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge
charge.succeeded occurs whenever a charge is successful. For reconciliation, you can listen to either one.
Yes, but which of the two tells me the payment was successful?
actually, both ๐
And what's the difference between the two?
The PaymentIntent is not a payment but rather it creates a charge for you. When the charge is succeeded the PaymentIntent will update to succeeded. That's why you receive both events.
To know if the payment succeeded, you can listen to either events.
The difference between the two events is that they are for two different objects
One is for a PaymentIntent object (which creates a Charge object in the background) & the other one is for the Charge object (which was created in the background for the PaymentIntent)
OK, thanks. Was just unsure if the two represent a different status in the payment flow between banks and stripe. Like charge.succeeded would be the final assurance the credit card was successfully charged. But looking at it from banking perspective you say both are the same, right?
yup
ok, thanks