#Nacio

1 messages · Page 1 of 1 (latest)

warped fogBOT
flint meadow
#

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

ivory nacelle
#

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?

flint meadow
#

Correct. The charge.refund.updated event will only fire when an existing refund is updated, as far as I can tell

ivory nacelle
#

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

flint meadow
#

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

Simulate payments to test your integration.

ivory nacelle
#

Oh, will test with that then

#

Thank you very much, have a good one

wise girder
#

Hi, stepping in for two-shoes. Let me know if you have any follow up questions.