#Bo0013246

1 messages · Page 1 of 1 (latest)

placid relicBOT
weary gull
#

hello! i'm afraid we don't have any such diagram

zinc glen
#

Can you tell me if charge_captured happens before or after charge_succeeded

#

thanks

weary gull
zinc glen
#

I see

placid relicBOT
zinc glen
#

what is the difference between payment_intent capture and charge.capture

#

also payment_intent.succeed vs charge.succeed?

regal raven
#

Hi @zinc glen I'm taking over this thread

zinc glen
#

ty

regal raven
#

payment_intent.succeed vs charge.succeed events are similar as they both represent successful payments. The difference is the data type that you get from the event object

zinc glen
#

can you elaborate a bit more?

regal raven
#

You get a PaymentIntent object from payment_intent.succeed, and a Charge object from charge.succeeded.

zinc glen
#

so if I need to have a webhook to confirm the success of a payment, should I listen to which one?

regal raven
#

If you are using PaymentIntents API, you just need to listen to payment_intent.succeeded

zinc glen
#

ok, thanks

#

One more question, can you please confirm if this is correct?

#

the sequence?

regal raven
#

The webhook events may not arrive in sequence.

zinc glen
#

understood

#

but can you confirm if the charge events happen in that sequence?

regal raven
#

The flowchart looks good to me

zinc glen
#

ty

#

is there any stripe docs that shows those kind of transition diagrams?