#rogeryang_popchill

1 messages · Page 1 of 1 (latest)

elder gulchBOT
keen veldt
#

hello! To clarify, do you mean you want to refund an already captured payment? Or do you want to cancel the held amount?

hoary badger
#

both.

keen veldt
hoary badger
#

but we just want to know is it correct to call this api when we haven't capture yet?

#

I mean we just want to cancel the pre-authorization.

keen veldt
hoary badger
#

So, we have to intergrate two situations when we separate auth and capture?

#

In the pre-auth session, we call the cancel paymentintent api?

#

In the captured session, we call the refund charge?

#

Is it correct?

keen veldt
#

yep, that's right

hoary badger
#

thanks!

#

and another question

#

the response parameter "latest_charge" is the charge id to let us used in the refund charge api?

keen veldt
hoary badger
#

ok I see, but can we call this api to cancel a pre-auth payment intent?

#

which means in two situations, we call the same api to refund? And just pass the paymentintent id?

keen veldt
#

i thought we just discussed this?

In the pre-auth session, you would call the cancel paymentintent api
In the captured session, you would call the refund charge

hoary badger
#

I see, so we should use two api to intergrate refund?

keen veldt
#

yes, that's correct