#gtabeo

1 messages · Page 1 of 1 (latest)

dense sedgeBOT
dense cedar
#

You need to use expansion to retrieve the charge object with any refunds included

#

expand[]=refunds when retrieving the charge

deft edge
#

yes sure, but how you get which refund triggered this webhook charge.refunded?

dense cedar
#

This will flip things around, its the refund object, which has a reference to the charge

deft edge
#

this webhook is never triggered on a successfull refund

#

check here:
pi_3NL9KRJ1zjQpWMSp0wZRcAJ4

deft edge
#

@dense cedar can you please confirm that the webhook you recommend is always sent?

dense cedar
#

No, you're right, i was mistaken and looking at the wrong thing

#

Just checking more now

dense sedgeBOT
dense cedar
#

I'd suggest then using either exansion or the list api as i suggested, these will be listed most recent first, so you can take signal from that

deft edge
#

yes, I can take a signal but it's not 100% reliable .

Do you believe that I can assume that a refund is successful if I don't check the charge.refunded object ?

If the refund is cancelled at some point in the future I will catch the charge.refund.updated and I will do the required actions

dense cedar