#wallave - Refund Events

1 messages · Page 1 of 1 (latest)

pliant fiber
wise karma
#

👋 I got it

#

charge.refunded happens when you refund a charge so on refund creation. charge.refund.updated happens async if an existing refund gets updated, usually when it fails. You don't get it if it succeeds since we assume success on creation

dapper rock
#

So are you confirming that charge.refund.updated is only for failure?

wise karma
#

easy to test in Test mode. But you won't get it otherwise

dapper rock
#

Ahh just for test mode

wise karma
#

yeah those are to trigger behaviour that could happen in Live mode

#

Sorry I fear you misunderstood me

#

If a refund succeeds, you get charge.refunded on refund creation. Nothing else.
If a refund fails, you get charge.refunded on refund creation and later, when it fails, you then get charge.refund.updated

dapper rock
#

So technically for asynchronous refund failure we get two callback

#

Sorry my changes are about to go live so I am trying not to get lost in words