#wangtao-PaymentIntent

1 messages · Page 1 of 1 (latest)

long galleon
#

Hi! So you have a PaymentIntent ID, and you want to find the corresponding charge ID?

left veldt
#

Yes

#

I'd like to make a transfer and set the source_id to that charge

#

Basically I'm building a marketplace, where buyers pay on the site, and then I use the charge ID to transfer a certain amount of money to the seller, but I need to get the charge ID to make sure that the transfer amount would not be greater than the buyer's payment

long galleon
left veldt
#

Thanks!

#

Also, can I get multiple charges from a single payment intent?

long galleon
#

It can happen when a charge fails.

left veldt
#

Hmm, so only when it fails?

#

Can I assume that with a single payment intent, there should be only one successful charge?

long galleon
#

If you have a PaymentIntent and the first charge fail, and then you try again and it works, you'll end up with a PaymentIntent with 2 charges.

#

there should be only one successful charge?
Yes

left veldt
#

Great, thanks for your help!

#

By the way, can I also assume that a successful payment intent should always have one and at most one successfull charge?