> We can send you a webhook on every dispute being created (https://stripe.com/docs/webhooks) and you could use the API to either refund the underlying charge or accept the dispute (and refund the underlying charge).
Unfortunately, I don't think that's possible.
On Stripe, attempting to refund an actually disputed charge results in an error / invalid request.
Refunding a charge back is / can be a bad idea - you can refund, still lose the charge back, and pay for the chargeback.
For a $100USD transaction you risk losing 230USD as opposed to 130USD if you refund.
It's even written on the dispute page on stripe to avoid refunding charge backs
Unfortunately, I don't think that's possible.
On Stripe, attempting to refund an actually disputed charge results in an error / invalid request.
https://stripe.com/docs/error-codes#charge-disputed
It does work for inquiries but I am not sure how often those happen vs. "proper" declines/chargebacks. I'd assume the majority is of the latter type.