#smriti15s-refunds
1 messages · Page 1 of 1 (latest)
I could see refund status could be Status of the refund. For credit card refunds, this can be pending, succeeded, or failed. For other types of refunds, it can be pending, succeeded, failed, or canceled.
But I want, "partial refund", "refumded", the same status shown on dashboard as part of api
hi! well you'd start by looking at the refund object associated with the specific payment
https://stripe.com/docs/api/charges/object#charge_object-refunds
Then looking at the fields on the Refund object. https://stripe.com/docs/api/refunds/object
It's a partial refund if the amount on the Refund is less than the amount on the associated Charge object.
Okay. But does succeded or failed status on the refund object means amount has reached customer?
succeeded means we sent it to them
there's no way to know if it arrived directly or not, since it might bounce back later(https://stripe.com/docs/refunds#failed-refunds) , but in most cases you just tell the customer they were refunded and they'll see the money in their account soon