#reymon359
1 messages · Page 1 of 1 (latest)
hello! what type of payment methods are you accepting e.g. cards only?
for now yes
you can assume it's successful when you submit the refund request successfully for cards. You would want to listen for the charge.refund.updated for failed refunds : https://stripe.com/docs/refunds#failed-refunds
it's pretty unfortunate, but from v2022-11-15 (https://stripe.com/docs/upgrades#2022-11-15), if you're using that version (or newer),, the Charge object no longer auto expands the refunds, so you would probably have to list all refunds for a particular charge (https://stripe.com/docs/api/refunds/list#list_refunds-charge) to view the status of the relevant refund
thanks for the info. So I should listen to charge.refund.updated . Can I access the charge status there? I dont want to listen all the refunds if the charge updated is success or similar
the charge.refund.updated event reflects the charge status, it doesn't include the refund status if you're using v2022-11-15 API or newer
you need to retrieve the refund to view what's the status of the relevant refund like i've mentioned
alright, thanks!