#DarkStar
1 messages ยท Page 1 of 1 (latest)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hi there!
Of course I'm not using the old Charges API, but the new Payment Intents API. My question is about the automatically created charges.
There could potentially be more than one charge if a previous charge failed. But note that on the PaymentIntent object, charges.data:
This list only contains the latest charge, even if there were previously multiple unsuccessful charges.
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-charges-data
So if the PaymentIntent was successful, just get the latest charge and it will work.
Oh, I didn't notice that detail! Thank you ๐
Happy to help ๐