#dariodjuric
1 messages · Page 1 of 1 (latest)
Yep, should do. Easy enough to test!
Thanks. I did not see it being triggered, though. I'll keep troubleshooting.
Can you share the pi_xx ID you're trying to refund?
Sure, here it is: pi_3OMadcF2MCQECb2m14z1Uop7
Ah, sorry. It's charge.refunded: https://dashboard.stripe.com/test/events/evt_3OMadcF2MCQECb2m1cnl42os
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
refund.created is specific to customer cash balance (bank transfers)
Right. I actually tried to use charge.refunded initially, but I don't see the exact amount refunded. The charge.amountRefunded field only contains the total amount refunded for that charge.
Yeah there's no field for the specific amount refunded on that refund. What you could do is leverage the previous_attributes hash and calculate the refund amount using amount_refunded there
i.e. amount_refunded - previous_attributes[amount_refunded]
Will give you the net refund amount for that specific event
That comes as a webhook event attribute? Thanks, interesting approach.