#Nacio
1 messages · Page 1 of 1 (latest)
That event is the only one to get that information. That being said, the refunds list has to be expanded (see here: https://stripe.com/docs/expand) in order for the Refunds to show up.
Since you can't expand webhook events, you have to make a separate API call to Stripe to retrieve the Charge object with the refunds list expanded instead
Alright, and in live mode I assume the refund goes through statuses e.g. like pending -> succeeded?
And I can only listen to the Refund being updated with charge.refund.updated, it doesn't fire for creating the refund?
Correct. The charge.refund.updated event will only fire when an existing refund is updated, as far as I can tell
And in test mode the refund gets created with the status already being succeeded, correct? As I didn't see the webhook try to send any charge.refund.updated
You can use the card numbers or special Payment Method strings from these docs to simulate failed refunds. You just can't simulate pending updates: https://stripe.com/docs/testing#refunds
Hi, stepping in for two-shoes. Let me know if you have any follow up questions.