#issac

1 messages · Page 1 of 1 (latest)

tender nebulaBOT
radiant flax
#

Can you share the example payment intent ID (pi_xxx)?

stray nacelle
#

pi_3OPyIGIgHTmGKAPW07NFMSFJ

#

i am developing a new feature ,need to get the capture status and id from capture response,so could you help with it?

#

now i can just get the payment intent id and status

radiant flax
#

You will be able to get the amount that has been captured in the latest_charge: https://stripe.com/docs/payments/multicapture#capture-payment-intent

Charge object in latest_charge is not expanded by default, so it should be added as the expanded parameter: https://stripe.com/docs/api/expanding_objects

Capture a PaymentIntent multiple times, up to the authorized amount.

stray nacelle
#

so if i want capture two or more times, how can i identify every capture? is there any id could do it?

radiant flax
#

The amount in each capture should be saved in your own database. Stripe doesn't provide an unique ID of each capture

stray nacelle
radiant flax
#

Not necessary. If there is any failed attempt of a payment in the past, it will also create a charge.

If the payment intent is succeeded, the latest_charge should be the successful charge that is capturable

stray nacelle
#

if i capture payment intent there times, every time i capture will get same charge id or different charge id?

#

and this payment intent would have there charge records or only one charge record

radiant flax
#

if i capture payment intent there times, every time i capture will get same charge id or different charge id?
Every time will be on the same charge ID with the successful authorisation

and this payment intent would have there charge records or only one charge record
A payment intent can have multiple charges, but there will only be one successful authorisation charge which is the latest_charge if the payment intent is succeeded. Any multi-capture on the payment intent will on the sucessful charge in latest_charge

stray nacelle
#

got it thx :)