#Lorey-pi-charges
1 messages · Page 1 of 1 (latest)
Hey! No that's not safe to assume as there may be multiple Charge objects relating to a single Payment Intent
What do you need from the Charge object?
We want to log the charge as that represents that payment done in the moment in time
As you say, a payment_intent could be responsible for multiple payments
So the charge is important to us
For example when dealing with disputes and refunds
we need to be able to track the original payment
Then you can just listen to Charge events: https://stripe.com/docs/api/events/types#event_types-charge.succeeded
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alright! Are these also fired for Subscription invoices?
I know Subscriptions do create a PaymentIntent
Wherever there's an actual payment and a Charge object then they'll be a charge event
Alright thank you!