#honkotonk

1 messages ยท Page 1 of 1 (latest)

junior pulsarBOT
spare niche
icy fiber
#

Yes, but which of the two tells me the payment was successful?

spare niche
#

actually, both ๐Ÿ˜…

icy fiber
#

And what's the difference between the two?

spare niche
#

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)

icy fiber
#

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?

spare niche
#

yup

icy fiber
#

ok, thanks