#bioworkflows
1 messages · Page 1 of 1 (latest)
Which API version are you using? If you use API version after 2022-08-01, charge can be found in latest_charge instead of charges: https://stripe.com/docs/payments/payment-intents/verifying-status#identifying-charges
Yes, I recently updated my API version to whatever the latest.
Then you should be able to find it in latest_charge parameter
charges means multiple chargers (I only have one but I use charges.data[0]), but lastest_charge is a single Charge object, right?
In Payment Intent retrieval, charges will only return latest charge and not all, which is the same as latest_charge
This is explained in https://stripe.com/docs/payments/payment-intents/verifying-status#identifying-charges:
A PaymentIntent’s Charge property only contains the most recent charge. To view all of the charges associated with a PaymentIntent, list all charges with the payment_intent parameter specified. Note that in addition to the final successful charge, the list includes any unsuccessful charges created during the payment process.