#nkusibojoski
1 messages · Page 1 of 1 (latest)
Depends on what field(s) you need from the event. payment_intent.succeeded is the likely the one
Can you mention some example field that are different ?
Well, charge.succeeded will contain the Charge object: https://stripe.com/docs/api/charges/object
payment_intent.succeeded will contain the Payment Intent object: https://stripe.com/docs/api/payment_intents/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
There's a field on each that relate to the other, so you can easily get the Charge from the payment_intent.* events and vice versa
General recommendation is to use paymewnt_intent.* events as that's the API you interface with directly
Got it! This was helpfull to me. Thanks a lot!