#Min.K
1 messages · Page 1 of 1 (latest)
yes, they can
Hi
Please check this
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?
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
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?
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
Oh, i see.
Where can i find how to execute partial capture?
I will only be taking payments with the checkout API.
tell Checkout to authorise but not capture : https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-capture_method manual
capture with an amount less than the total: https://stripe.com/docs/api/payment_intents/capture#capture_payment_intent-amount_to_capture
Thank you so much