#surgical
1 messages · Page 1 of 1 (latest)
charge.refunded is for when the refund is created. No updated event will be sent out on the initial refund creation.
charge.refund.creation is for when something happens after the refund is initially created. Sometimes refunds are rejected so you may have to handle that. Or it would be triggered if you set metadata on the refund object or things like that
okay. so if i'm looking for when charge refunds are succeeded, i should be listening to:
charge.refund.updated ?
No, just charge.refunded, there isn't specifically an event for the refund succeeding. When you initiate the refund successfully with the bank, that event is sent out, so it is basically already in a success state. In rare circumstances the bank will have an issue with the refund, cancel it, and that is when you will get the updated event
got it okay thank you