#Min.K

1 messages · Page 1 of 1 (latest)

sage wyvernBOT
coarse path
#

yes, they can

thick depot
#

Hi

#

If so, I would use the

amount and amount_refunded are the same?

Or should I compare if amount_captured and amount_refunded are equal?

coarse path
#

I'd suggest doing a number of tests in test mode of different scenarios and see exactly what you get and what works for you

thick depot
#

So here's what I want

When the charge.refunded event is sent, I want to determine if it's a partial or full refund.

Should I determine a full refund if amount and amount_refunded are the same, and a partial refund if they are different?

Or if amount_captured and amount_refunded are the same, should I consider it a full refund, and if they are not, should I consider it a partial refund?

coarse path
#

seems like it might work, best way to be sure is to make 3 test charges(one normal, one with a partial refund, one with a partial capture) and compare the events

thick depot
#

Oh, i see.

Where can i find how to execute partial capture?

#

I will only be taking payments with the checkout API.

thick depot
#

Thank you so much