/ecommerce-development:ecommerce-payment-methods-sca-fraud-and-pcifrom ecommerce-development
Reference for adding payment methods and hardening checkout: cards, wallets, bank rails, BNPL, SCA/3-D Secure, fraud types, chargebacks, and PCI DSS v4.0.1 architecture including SAQ A, iframes, and script integrity.
Ships in ecommerce-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 2 of 4 of the eCommerce and Payments Development reference (plugin
ecommerce-development), covering §5–§8. Sibling skills:ecommerce-payments-architecture-and-integration(§0–§4),ecommerce-billing-tax-platforms-and-checkout(§9–§14),ecommerce-reference(§15–§20). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: Verified August 2026. See §17 →
ecommerce-referencefor the currency snapshot and what goes stale first.
How to read this. Reference, not tutorial. Sections are independent. Three markers:
- [DURABLE] — accounting reality, distributed-systems truth, or a lesson every payments team learns the hard way. Does not expire.
- [VERSIONED] — API versions, regulatory deadlines, platform behaviour, market state. Verify before relying on it.
- [CONTESTED] — practitioners genuinely disagree.
⚠️ GOTCHA boxes mark the mistakes that double-charge customers, lose orders, fail an audit, or quietly leak revenue for months before anyone notices.
Scope note: this is an engineering document. It covers how these systems are built, integrated, and operated. It is not legal, tax, or financial advice — the regulatory material in §8 and §11 →
ecommerce-billing-tax-platforms-and-checkouttells you what to ask your counsel and your acquirer, not what your obligations are.The three framings that organize everything below:
- Money is not data. It is data with an audit trail, a counterparty, and a regulator. A dropped message in most systems is an inconvenience; here it's a customer charged twice, or an order shipped for free. Every design decision follows from that asymmetry.
- The network will fail mid-transaction, and you must be correct anyway. This is a distributed-systems problem wearing a business costume. Idempotency and reconciliation (§3 →
ecommerce-payments-architecture-and-integration) are not best practices — they are the load-bearing walls.- Your job is mostly to touch card data as little as possible. PCI scope is a function of architecture, and the difference between the easy compliance path and the expensive one is decided in week one (§8).
The default, and the most expensive. Interchange + scheme fees + acquirer margin is what you're actually paying; "2.9% + 30¢" is a blended retail price over that. Know card-present vs. card-not-present (CNP costs more and carries the fraud liability), debit vs. credit vs. prepaid, and commercial cards (higher interchange, and Level 2/Level 3 data can reduce it for B2B).
Network tokens (replacing the PAN with a network-issued token) improve authorization rates and survive card reissuance — worth enabling; most PSPs support it.
[DURABLE] Payment method mix is a localization problem, and getting it wrong silently caps your conversion in a market. Cards dominate the US; much of Europe runs on bank transfers and local schemes (iDEAL in NL, Bancontact in BE, BLIK in PL); Germany historically favours invoice and direct debit; Brazil runs on PIX; India on UPI; much of Southeast Asia and Africa on wallets and mobile money.
ecommerce-billing-tax-platforms-and-checkout).[DURABLE] Worth understanding even if you never touch them directly, because they determine settlement timing and irrevocability.
SWIFT is the interbank messaging network — it moves instructions, not money; the money moves through correspondent banking relationships and nostro/vostro accounts. This is why international wires take days and why fees appear from intermediaries you never chose. ISO 20022 is the structured, data-rich message standard that has been replacing the older MT formats across major payment systems, enabling far richer remittance data and better sanctions screening and reconciliation. [VERSIONED] Migration timelines differ by scheme and market — verify the current state for any rail you depend on, as several major coexistence periods have recently ended or are ending.
Card networks (Visa, Mastercard, Amex, Discover, plus domestic schemes like Cartes Bancaires and UnionPay) are a four-party model: cardholder, issuer, acquirer, merchant, with the network in the middle setting rules and interchange.
[DURABLE] SCA requires two of three factors — knowledge, possession, inherence — for in-scope electronic payments in the EU/UK. 3-D Secure 2.x is the dominant technical mechanism for satisfying it on card-not-present transactions, and it passes rich device and transaction data to the issuer to enable frictionless authentication where risk is low.
The exemptions matter commercially — low value, transaction risk analysis (TRA), recurring/MIT, merchant-initiated transactions, and trusted beneficiaries. Requesting the right exemption is the difference between a frictionless approval and an abandoned checkout, and modern PSP APIs handle much of this automatically when you use their higher-level payment objects.
[VERSIONED] PSD3/PSR refines the SCA framework rather than replacing 3DS2 — the protocol itself is not changing. Expect expanded SCA triggers (new token creation, spending-limit changes) once the new rules apply, and note that delegating SCA to a third party is being treated as formal outsourcing, pulling in EBA outsourcing guidelines and DORA obligations — written agreements, SLAs, exit plans, audit rights.
[DURABLE] A 1% improvement in authorization rate is usually worth more than any conversion optimization you'll do on the front end, and almost nobody measures it.
Levers: network tokens (§5.1), account updater for expired/reissued cards, correct MCC coding, AVS/CVV data quality, smart retries on soft declines (with respect for network retry rules — excessive retries incur fees and can flag you), local acquiring in major markets (a locally-acquired transaction approves materially better than a cross-border one), and passing full 3DS data even when not required.
Soft vs. hard declines: soft (insufficient funds, do-not-honor, issuer unavailable) may succeed on retry; hard (stolen card, invalid account, revoked authorization) must never be retried — retrying hard declines is a compliance problem, not just futile.
| Type | Who loses | Notes |
|---|---|---|
| Stolen card / CNP fraud | The merchant, via chargeback | The classic. Liability may shift with 3DS |
| Friendly fraud / first-party misuse | The merchant | The largest category by volume for many merchants, and the hardest to fight |
| Account takeover | Customer and merchant | Protect accounts, not just checkout |
| Card testing | Merchant (fees, reputation) | Bots probing stolen numbers with tiny charges. Rate-limit and CAPTCHA your payment endpoint |
| Refund/return abuse | Merchant | Policy problem more than a technical one |
| Triangulation, promo abuse, reseller fraud | Merchant | Business-logic attacks |
| APP fraud | The customer (and increasingly the PSP) | Growing with instant rails; ⚠️ PSD3/PSR shifts liability toward PSPs — §17 → ecommerce-reference |
[DURABLE] Fraud prevention is an optimization problem with two costs, and teams systematically optimize only one. False negatives cost you chargebacks; false positives cost you good customers, and are invisible unless you measure them. A rule set tuned only on chargeback rate will strangle revenue.
customer disputes → issuer initiates → funds pulled from you + a fee
→ you accept, or REPRESENT with evidence
→ issuer decides → possible pre-arbitration → arbitration (expensive, rare)
⚠️ You lose the fee either way, even when you win. And chargeback ratios are monitored by the networks; exceeding thresholds puts you in a monitoring program with fines and, ultimately, loss of processing. The ratio matters more than the absolute number.
Prevention beats representment: a clear and recognizable billing descriptor (a startling share of disputes are "I don't recognize this charge"), obvious cancellation and refund paths, delivery confirmation, pre-renewal notices for subscriptions, and responsive support. Order Insight / Consumer Clarity-style network programs let issuers show transaction detail in the banking app and deflect disputes before they start.
[DURABLE] Everything in PCI is downstream of one question: does cardholder data ever touch your systems?
SAQ A fully outsourced — hosted payment page or PSP-hosted iframe ← aim here
SAQ A-EP your page, but it affects the transaction (e.g. JS-based fields)
SAQ D you touch, transmit, or store cardholder data ← expensive
The strategic advice is simple: use the PSP's hosted fields, iframe, or redirect, store only PSP tokens and IDs, and never let a PAN reach your server or your logs. This keeps you in the lightest tier and out of the most expensive parts of the standard.
[VERSIONED, and this is the part most merchants have wrong.]
PCI DSS v4.0.1's future-dated requirements became mandatory on 31 March 2025 — 51 requirements that had been "best practice" until that date, on top of 13 that applied immediately. There is no remaining transition phase, and v4.0.1 is the only active version. Two matter most for e-commerce:
Both exist to address Magecart-style e-skimming, where malicious JavaScript is injected into a checkout page to exfiltrate card data.
⚠️ GOTCHA — the SAQ A change looked like relief and is arguably the opposite. In January 2025 the PCI SSC removed 6.4.3, 11.6.1, and 12.3.1 from SAQ A in response to merchant feedback — and replaced them with an eligibility criterion: the merchant must confirm "their site is not susceptible to attacks from scripts that could affect the merchant's e-commerce system(s)."
Read the scope change carefully. The old requirements applied to the payment page. The new eligibility criterion applies to your entire website. Merchants using redirects — previously out of scope for 6.4.3 and 11.6.1 entirely — must now verify that all scripts within their e-commerce system are secure. If you cannot make that confirmation, you are not eligible for SAQ A at all and must validate against SAQ A-EP, which carries a far larger requirement set.
A February 2025 PCI SSC FAQ clarified two routes to satisfy it: implement 6.4.3 and 11.6.1 yourself anyway, or obtain written confirmation from a PCI DSS compliant third-party service provider that its embedded payment solution protects against script attacks when implemented per their instructions. Practitioners also recommend demonstrating via web application testing or a properly configured WAF.
The October 2024 SAQ A retired 31 March 2025; the January 2025 (r1) version took effect the same day.
CSP and Subresource Integrity (SRI) are the practical implementations of 6.4.3 — and are worth doing regardless of which SAQ you file. Minimize third-party scripts on checkout (every analytics tag is a supply-chain risk on your highest-value page). Tokenize everything; store PSP tokens, never PANs. TLS 1.2+ everywhere. Rate-limit payment endpoints against card testing. Secrets in a manager, not env files in git. And PCI is contractual, not statutory in most jurisdictions — but the financial consequences (card-brand fines levied on your acquirer and passed to you, forensic investigation costs, and potential loss of processing) are severe and multi-layered.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/ecommerce-billing-tax-platforms-and-checkoutUse when building subscriptions and recurring billing (dunning, proration, trials), marketplaces and multi-party payments (merchant of record, KYC, split payments and payouts), sales tax, VAT, and cross-border (nexus, thresholds, duties), choosing platform vs headless vs custom (Shopify, composable commerce, build vs buy), designing the catalog, cart, and checkout (the data model, conversion), or evaluating agentic commerce — what it is, the standards contest, and the reality check./ecommerce-payments-architecture-and-integrationUse when designing or integrating a payments system. Covers the shape of a commerce system, the order state machine and consistency, the payment lifecycle (authorization, capture, settlement, refunds, and money handling — minor units, rounding, currencies), integration engineering (idempotency keys, webhooks and replay, reconciliation, error handling and retries), and choosing among PSPs, gateways, and orchestrators (Stripe, Adyen, PayPal, Braintree) including API versioning. Includes the router for the whole ecommerce-development reference./ecommerce-referenceUse when reviewing a commerce or payments system for known anti-patterns (double charges, lost orders, silent revenue leaks), weighing contested questions (platform vs headless vs custom, one PSP or several, merchant of record vs doing it yourself, how aggressive to be on fraud, whether agentic commerce is real yet, when to reserve inventory, building a ledger vs trusting PSP reporting), checking whether a regulatory or platform claim is still current (snapshot verified August 2026), finding primary documentation and books, or needing the numbers, payment integration checklist, and triage. Companion to the other ecommerce-development skills.npx claudepluginhub the-vibey-project/vibey --plugin ecommerce-development