Pieter Levels(@levelsio) built a fully automated Stripe dispute system in a single day using vibe coding. The flow: receive a dispute via webhook → automatically collect evidence of user signup and activity → package it into a clean PDF → submit it to the bank via the Stripe API.

TL;DR
levelsio dispute automation webhook→evidence→PDF→bank submission $33.8B annual chargeback market AI win rates 55–65% how to apply it

What Is It?

Payment disputes — better known as chargebacks — are one of the most annoying problems SaaS and e-commerce operators deal with. When a customer tells their bank "I don't recognize this charge," the merchant has to gather evidence and fight back. Don't respond? You just lose the money.

levelsio's system automates the entire process with AI:

  1. Receive disputes via Stripe Webhook
    New disputes are detected in real time, and existing disputes sync automatically
  2. Auto-collect user evidence
    Signup timestamp, activity logs, and customer-generated content (interior designs, etc.) — all pulled together automatically
  3. Generate a PDF evidence package
    Auto-formatted for bank reviewers. Think: "This user logged in 47 times after signup and created 23 designs" — specific, concrete proof
  4. Auto-submit via Stripe API
    $stripe->disputes->update($dispute_id, [evidence]) pushes the evidence directly

The key is that no human needs to be involved at all. When a dispute comes in, the system handles it — levelsio just checks the results.

What Changes?

Chargebacks are a much bigger deal than most people realize. Let's look at the numbers:

$33.8B
Global chargeback volume in 2025
$4.61
True cost per $1 of fraud
8.1%
Net win rate with manual processing

Here's the kicker: when you handle disputes manually, your net win rate is just 8.1%. The average dispute costs $191 to process — and after fees and labor, you barely break even even when you win.

AI automation is changing that equation:

Manual ProcessingAI Automation
Daily throughput20–30 cases per analyst500+ cases
Evidence collection time30–60 minutesUnder 2 minutes
Missed deadlines8–12%Under 0.5%
Win rate30–40%55–65%
Cost per case$25–50$3–8

Stripe is riding this wave too. They launched Smart Disputes, an AI-powered evidence submission tool that recovered 13% more chargebacks for Vimeo and Squarespace. And if you lose, Stripe covers the cost.

But here's what makes levelsio's approach different. Stripe Smart Disputes only uses Stripe's internal data, while levelsio pulls his own first-party data — usage logs, customer-generated content, login history — directly into the evidence package. That's what makes the real difference in win rates.

How Visa CE 3.0 Changed the Game
Visa's Compelling Evidence 3.0 rules let you overturn a chargeback by matching data from two or more prior non-disputed transactions (device ID, IP address, login info). AI agents are built for exactly this — finding those matches across thousands of transactions automatically. Some operators are seeing win rates jump 20% because of this rule alone.

Getting Started

You don't need to build a fully automated system like levelsio's right away. Here are practical steps you can take right now to improve your chargeback response.

  1. Start logging user activity systematically
    Signup timestamp, login count, key feature usage, IP address, device info. When a dispute lands, this becomes proof that "this person actually used our product." It's also exactly what Visa CE 3.0 asks for.
  2. Set up Stripe Webhooks
    Configure your endpoint to listen for the charge.dispute.created event so you get notified the moment a dispute comes in. This is where levelsio started. Stripe's official docs have a full guide.
  3. Build standardized evidence templates
    The Stripe API's disputes->update endpoint accepts your evidence directly. Pre-building a template with signup proof, activity logs, customer communication records, and refund policy disclosures will cut your response time in half.
  4. Set a clear billing descriptor
    If your charge shows up as "PYMNT*4829," customers won't recognize it and will dispute it. Switching to something like "YourBrand.com Subscription" can eliminate 15–20% of disputes on its own.
  5. Evaluate AI dispute tools
    Options include Stripe Smart Disputes, Chargeflow (claims 80% win rate improvement with AI), and Justt (success-fee model). If you're seeing 50+ disputes a month, the ROI is clear.
Watch Out for Card Network Monitoring Programs
Visa starts fining merchants $25,000/month when your chargeback rate exceeds 0.9%, and Mastercard charges $1,000–2,000 per case above 1.5%. Stay in that zone for six months and the fines double — plus you'll pay an extra 0.5–1% on every transaction. At the extreme end, you can lose card acceptance entirely.

Deep Dive Resources

Stripe's Official Dispute Management API Guide

Everything you need to manage disputes programmatically via the Stripe API — evidence uploads, dispute responses, and webhook event handling, all covered in detail.

Stripe Smart Disputes

Stripe's AI-powered automatic evidence collection and submission tool. No integration work required, and Stripe covers the cost if you lose.

Mastercard's Chargeback Cost Analysis Report

A detailed breakdown of the 2025 global chargeback market — total volume, average dispute amounts by industry, regional growth projections, and financial institution processing costs ($9–10/case).

Chargeflow's Comprehensive Chargeback Statistics Guide

A data-driven roundup of 2025 chargeback trends, costs, and solutions — fraud type breakdowns, dispute rates by industry, and the measured impact of Visa CE 3.0.