#PERF - Payment Data

1 messages · Page 1 of 1 (latest)

gentle forge
#

Hi 👋
Well you're the one defining the table in that case aren't you?

fast musk
#

yea.. i worded my question poorly.

Right now if you call the "charge list" endpoint it will or will not list charges done via payment intents?

gentle forge
#

It will return the Charge objects associated with the account that made the request. This includes charges that are created as a result of payment intents.

fast musk
gray pagoda
#

You can create a PaymentIntent and then confirm it multiple times like if the payment fails a few times

fast musk
#

ahh so each charge attempt creates a charge item

#

it fails or succeeds or w.e.

gray pagoda
#

correct!

#

a PaymentIntent is like a state machine of your intent to collect a payment and a Charge is a record of a given payment attempt (succeeded or failed)

#

and a PaymentIntent can at most one successful charge, the most recent one