#bioworkflows

1 messages · Page 1 of 1 (latest)

glacial minnowBOT
thorny egret
river veldt
#

Yes, I recently updated my API version to whatever the latest.

thorny egret
#

Then you should be able to find it in latest_charge parameter

river veldt
#

charges means multiple chargers (I only have one but I use charges.data[0]), but lastest_charge is a single Charge object, right?

thorny egret
#

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.

river veldt
#

I see. Thanks for the documentation. I now need to call stripe again to retrieve Charge using the charge ID from PaymentIntent.latest_charge.

#

Thanks for your prompt response at this late evening.