Chargeback prevention is everything that stops a payment turning into a dispute: being recognizable on the statement, being easier to reach than the bank, catching fraud before you capture the money, and refunding before the dispute is filed when one is coming anyway.
Prevention beats winning for a simple reason. The card networks count the disputes you receive, not the disputes you lose (Stripe). Visa's VAMP ratio adds fraud reports to disputes and divides by settled transactions, and since 1 April 2026 a US, Canadian, EU or Asia Pacific merchant is Excessive at 1.5%, with at least 1,500 of them in a month (Visa).
| Why customers dispute | What prevents it |
|---|---|
| They don't recognize the charge | A clear statement descriptor, and receipts |
| They forgot a subscription renewed, or couldn't cancel | Renewal reminders, and a cancel button |
| It didn't arrive, or wasn't as described | Tracking, honest shipping times, a findable refund policy |
| They never made the purchase (stolen card) | AVS and CVV, fraud rules, 3D Secure, delayed capture |
| They did, and say they didn't (friendly fraud) | Evidence captured at checkout, Compelling Evidence 3.0 |
| Any of the above, once they've called the bank | Alerts and pre-dispute resolution |
1. Make the charge recognizable
Stripe treats an "unrecognized" dispute as "effectively indistinguishable from the Fraudulent reason" (Stripe), so a confusing descriptor turns your real customers into fraud claims. Use your website domain or business name. On Stripe the descriptor is 5 to 22 characters, needs at least 5 letters, and can't contain <, >, ' or " (Stripe). Send a receipt for every payment.
One side effect worth knowing: Visa identifies a Stripe business in its programs by the static part of the descriptor, so several descriptors can mean several monitored accounts (Stripe).
2. Be easier to reach than the bank
Customers file chargebacks when getting a refund from you looks harder than calling their bank. Make your contact details easy to find, and answer quickly. Show your refund and cancellation policy in full at checkout and require agreement to it. Stripe warns that a checkbox with only a link may not satisfy the issuer as evidence (Stripe).
For subscriptions, Stripe's list is specific: an in-app cancel button, billing terms stated before you take card details, a reminder before a free trial ends, and renewal reminders about 7 days before a yearly renewal and 2 to 3 days before a monthly one (Stripe). For physical goods: state shipping times before checkout, send tracking as soon as you have it, and offer a refund when a delay happens.
3. Stop fraud before you capture
Stolen-card disputes are the hardest to win, so stop them at checkout with AVS and CVV checks, fraud rules (see Stripe Radar rules) and protection against card testing.
Then use timing. Cardholders can't dispute an authorization you never captured, and issuers aren't required to report fraud on one, while they must report it on a captured payment even after a refund (Stripe, Stripe). Authorize, review, then capture. For physical goods Stripe suggests delaying shipment by 24 to 48 hours, which gives cardholders time to spot fraud before the goods are gone (Stripe).
3D Secure shifts liability for most fraud disputes to the issuer. It doesn't stop the paperwork: you'll still receive early fraud warnings that count against card monitoring programs (Stripe). See 3D Secure and the liability shift.
4. Catch disputes before they're filed
When the customer has already called their bank, you still have a window.
- Early fraud warnings. Issuers on Visa, Mastercard and JCB flag suspected fraud before a dispute. Stripe says about 40% of Visa and Mastercard warnings become fraud disputes if you don't refund, and that refunding pays off on charges up to roughly your dispute fee (Stripe). Chargeback vs refund has a handler for them.
- Deflection. Visa's Order Insight shares transaction details with the issuer so the cardholder recognizes the purchase (Verifi). Stripe sends this data through Verifi's Order Insight for Visa and Ethoca's Consumer Clarity for Mastercard, and when the data is Compelling Evidence 3.0 eligible it can block the dispute entirely (Stripe).
- Resolution alerts. Verifi's CDRN and RDR "resolve transaction disputes by quickly processing a credit back to the cardholder", before the issuer files a chargeback (Verifi). Ethoca does the Mastercard side: an alert when a chargeback is about to be filed, giving you the chance to refund (Stripe).
The reason to bother: Visa excludes disputes resolved through pre-dispute solutions from the VAMP ratio (Visa), and on Stripe a resolved dispute doesn't count toward your dispute rate or incur the received fee (Stripe). On Stripe you set the rules in Radar. Its own example resolves every dispute of $10 or less (Stripe):
Resolve dispute if :amount_in_usd: <= 10.00
The price is $15 per Visa resolution or CE 3.0 block and $29 per Mastercard resolution; deflection lookups are included (Stripe pricing). A $15 Visa resolution costs the same as accepting a $15 dispute and keeps it off your ratio, so for disputes you'd accept anyway it's the better deal. A $29 Mastercard resolution costs more than the dispute fee, so it pays for itself only through the ratio.
If you buy alerts from a third party as well as your processor, deduplicate on the charge before refunding. An alert refund plus a support refund is the same customer paid twice.
5. Keep the evidence, for the ones you can't prevent
Some disputes get through anyway, and most of the ones worth fighting are friendly fraud. Capture the evidence at checkout, because you can't go back for it later: IP address, device ID, email, the customer account, AVS and CVV results, shipping and delivery data. Stripe recommends passing IP address, email address, shipping address and product descriptions with every payment (Stripe). Chargeback fees covers when fighting is worth it.
The prevention system in code: risk scoring for disputes that aren't fraud, early warning signs from support tickets, and evidence by reason code. From chapter 19.
Chargeback Prevention System
The full implementation is available in src/examples/19-fraud/chargeback_prevention.py. Here's how to use it:
from chargeback_prevention import ChargebackPreventionSystem, ChargebackReason
# Initialize the chargeback prevention system
chargeback_system = ChargebackPreventionSystem()
# Analyze chargeback risk for a transaction
chargeback_risk = chargeback_system.analyze_chargeback_risk(
context=transaction_context,
fraud_score=combined_fraud_score
)
# Get prevention actions based on risk level
prevention_actions = chargeback_system.generate_prevention_actions(
context=transaction_context,
chargeback_risk=chargeback_risk
)
print(f"Chargeback risk: {chargeback_risk:.1%}")
print(f"Prevention actions: {prevention_actions}")
# Detect early warning signs for a customer
alerts = chargeback_system.detect_early_warning_signs(customer_id="cust_123")
for alert in alerts:
print(f"Alert: {alert.transaction_id} - {alert.reason_category.value}")
# Prepare defense package when a chargeback is filed
defense = chargeback_system.prepare_chargeback_defense(
transaction_id="txn_456",
reason_code="10.4" # Visa fraud reason code
)
print(f"Evidence required: {defense['evidence']}")
Chargeback prevention: the last line of defense
Chargebacks are expensive, slow to resolve, and, if you accumulate enough of them, fatal to your merchant account. Prevent them where you can, and have the evidence ready when you can't.
The analyze_chargeback_risk method flags transactions likely to become chargebacks even if they're not technically fraudulent. Legitimate customers dispute charges all the time. Risk factors include high fraud scores (fraud almost always becomes a chargeback), card type patterns (Amex has historically higher dispute rates than Visa or Mastercard), amount thresholds (higher-value purchases get more scrutiny from cardholders), digital goods (easier to dispute than physical items), brand-new customers with no relationship to your business, and international transactions where complexity drives disputes.
The detect_early_warning_signs method watches for chargebacks before they're filed. Multiple support inquiries inside 30 days often signal brewing dissatisfaction, and reaching out first beats waiting for the dispute. It also tracks refund requests, since a customer asking for several refunds may be probing your dispute process, or is unhappy in a way that's about to escalate.
The prepare_chargeback_defense method assembles evidence automatically based on the reason code, because different codes require different evidence. For fraud disputes (Visa 10.x, such as 10.4; Mastercard 4837), you need AVS/CVV match results, 3D Secure authentication artifacts, and device fingerprinting that links the transaction to the cardholder's normal behavior. For authorization disputes (Visa 11.1-11.3, where 11.3 now also covers late presentment; Mastercard 4808), authorization codes and timestamps prove the bank approved the transaction, you followed procedure and you settled inside the allowed window. For processing error disputes (Visa 12.x, such as 12.6 duplicate processing; Mastercard 4834), transaction records, settlement dates and refund history show the charge was presented correctly and only once. For consumer disputes (13.1, 13.2, 4855), delivery confirmations, communication logs, and terms of service prove the goods or services were provided under agreed conditions.
Treat a chargeback dispute like a small court case. Organized evidence wins more of them, automated assembly means nothing gets left out, and you make the reply deadline. Track your win rate by reason code: it tells you which evidence works and which disputes aren't worth contesting.
Challenging only the risky payments, and the three artifacts to keep for the day a fraud dispute arrives. From the same chapter.
3D Secure 2.0 Implementation
The full implementation is available in src/examples/19-fraud/three_d_secure_handler.py. Here's how to use it:
from three_d_secure_handler import ThreeDSecure2Handler, BrowserInfo
# Initialize the 3DS handler
threeds_handler = ThreeDSecure2Handler(
mpi_provider_config={
'base_url': 'https://api.3dsecure-provider.com',
'api_key': 'your_api_key',
'merchant_id': 'your_merchant_id',
'merchant_url': 'https://your-site.com'
}
)
# Initiate authentication based on risk score
result = threeds_handler.initiate_authentication(
context=transaction_context,
risk_score=fraud_score
)
if result.challenge_required:
# Redirect customer to authentication URL
redirect_url = result.authentication_url
else:
# Frictionless flow - proceed with payment
# Use result.cavv and result.eci for liability shift
process_payment(result.cavv, result.eci)
3D Secure 2.0: smart authentication, not blanket friction
The original 3D Secure was hated because it challenged everyone and gutted conversion. 3DS 2.0 is risk-based - it only challenges when there's a reason. The _should_require_3ds method weighs the transaction risk score, customer history, regulatory requirements (EU SCA mandates challenges in specific cases), and merchant preferences before triggering anything.
The flow has two phases. First, the system contacts the issuer's Access Control Server (ACS) to decide whether authentication is needed. If so, you redirect the customer to their bank's authentication page: biometrics, an SMS code, or an app push notification, depending on what the issuer supports.
This works because 3DS 2.0 is contextually aware. Most legitimate transactions slide through frictionless. Only risky ones require interaction, and modern methods like Touch ID and push notifications beat the old janky password forms. Authenticated transactions shift chargeback liability to the issuer, which is the real reason merchants opt in.
The process_challenge_response method pulls out three artifacts you need to keep: CAVV (cryptographic proof authentication occurred), ECI (the level of authentication that happened), and XID (the transaction identifier linking authentication to payment). You'll need these if a chargeback shows up later and you want to claim the liability shift.
3DS integrates with your risk scoring directly - high fraud scores trigger authentication automatically, so ML and customer authentication reinforce each other. Done right, 3DS 2.0 keeps conversion up because most customers see no challenge, shifts fraud liability to issuers, and ticks the SCA compliance box in regulated markets.
Questions
How do I prevent chargebacks?
Use a statement descriptor customers recognize, make your contact details and refund policy easy to find, remind subscribers before renewals, stop fraud before capture with AVS, CVV and 3D Secure, and use alerts to refund disputes before they are filed.
What are chargeback alerts?
Chargeback alerts are notifications from services like Verifi for Visa and Ethoca for Mastercard that a cardholder is disputing a payment, sent before the chargeback is filed. Refunding through them resolves the dispute before it becomes a chargeback.
Does 3D Secure prevent chargebacks?
3D Secure shifts liability for most fraud disputes to the card issuer. You will still receive early fraud warnings, and those count against card monitoring programs, so it reduces losses more than it reduces dispute activity.
Do resolved disputes count toward my chargeback ratio?
No. Visa excludes disputes resolved through pre-dispute solutions from its VAMP ratio, and on Stripe a dispute resolved through dispute prevention doesn't count toward your dispute rate or incur the dispute received fee.
What should my statement descriptor say?
Your website domain or business name, whichever customers will recognize. On Stripe it must be 5 to 22 characters with at least 5 letters. Unrecognized charges are disputed as fraud.