Better HN
topnewbestaskshowjobs
Log inSign up

Filippoi

5 karma · joined Jun 3, 2019 (7y ago) · 1 submissions

Submissions

comment 7y ago · link · parent

> 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.

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.