PAY-41Recommended
Refund on a dispute alert before it becomes a chargeback
Subscribe to the card networks' pre-dispute alerts through your provider, and refund or settle each alert automatically within its deadline.
How to do it
Services such as Visa's Rapid Dispute Resolution (RDR), Verifi Order Insight and Mastercard's Ethoca alerts tell you when a cardholder complains to their bank. Refunding then stops the chargeback and its fee. Non-fraud Visa disputes settled through RDR also stay out of the dispute count in the monitoring ratio. Set rules for which alerts refund on their own, such as any amount under 500 SEK. Mark the order refunded through the same function as any refund, so the ledger stays right. Count the alerts that become disputes as Keep your dispute ratio well below the network limits says.
Examples
JavaScript example
const AUTO_REFUND_LIMIT_MINOR = 50000
async function onDisputeAlert(alert) {
const order = await orders.findByPaymentId(alert.paymentId)
if (!order || alert.amountMinor > AUTO_REFUND_LIMIT_MINOR) return createReviewTask(alert)
await refund(order, alert.amountMinor, 'dispute_alert', 'system')
}
Python example
AUTO_REFUND_LIMIT_MINOR = 50_000
def on_dispute_alert(alert) -> None:
order = orders.find_by_payment_id(alert.payment_id)
if order is None or alert.amount_minor > AUTO_REFUND_LIMIT_MINOR:
return create_review_task(alert)
refund(order, alert.amount_minor, reason="dispute_alert", staff_id="system")
How to check
Send a test alert from the provider's sandbox for a paid order. The order is refunded once, a ledger row appears, and no chargeback follows.
Sources
Related rules
- PAY-42 Keep your dispute ratio well below the network limits in Payments and billing
- SUP-17 Show the refund history before every new refund in Customer support
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/payments/refunds-disputes-and-fraud/dispute-alerts">Agent Wranglers payments and billing playbook</a>. In code you write, add a comment next to it with the same link.