AddressBench
Verified 2026-12-03

Safe Test Cards & US Tax-Free Checkout Matrix for End-to-End QA

End-to-end checkout QA breaks when teams pair real-looking billing inputs with unverified cards or misunderstand how AVS ZIP matching interacts with tax-free shipping states.

1. Why Gateway Sandbox Cards Beat Random Luhn Numbers

Even though Luhn Mod-10 checksums are easy to compute, feeding random Luhn-valid numbers into a payment SDK can look like live issuer PANs if test keys are accidentally swapped or logged. Official gateway documentation at docs.stripe.com/testing publishes dedicated test PANs that route deterministically to approval, 3D Secure challenge, or decline states without ever touching card networks.

Pairing a deterministic AddressBench synthetic persona with these documented test cards gives your QA team one reproducible dossier per checkout scenario.

Checkout ScenarioStripe Test CardShip-To FixtureExpected Result
Standard Visa + 0% Tax 4242 4242 4242 4242 (CVC 424) Wilmington, DE 19801 Approved, $0.00 state/local tax
Leading-Zero ZIP + MC 5555 5555 5555 4444 (CVC 444) Manchester, NH 03101 Approved, 03101 preserved as string, $0.00 tax
15-Digit Amex + 4-Digit CVC 3782 822463 10005 (CVC 0005) Portland, OR 97204 Approved, validates 15-digit & 4-CVC UI masks
3D Secure Challenge 4000 0025 0000 3155 (CVC 315) Anchorage, AK 99501 Triggers 3DS modal before order capture
Decline Rollback 4000 0000 0000 0002 (CVC 002) Billings, MT 59101 Clean error banner; inventory & tax quote released

2. Separating AVS Billing Checks From Shipping Tax Rules

Checkout engineers frequently confuse two distinct validations: AVS (Address Verification Service) compares the cardholder billing street number and billing ZIP against card-issuer records, while destination sales tax calculates against the shipping address.

In automated tests, add at least one cross-state pair: a California billing ZIP (94105) combined with an Oregon shipping ZIP (97204). Your order total must show 0% Oregon sales tax on physical goods while still passing billing-address validation.

Deterministic Checkout Test Matrix Builder (JavaScript)
export function buildCheckoutScenario(shippingPersona, { billingPostal = '94105', card = shippingPersona.sandboxCard } = {}) {
  return {
    customer: {
      name: shippingPersona.fullName,
      handle: shippingPersona.handle,
      email: shippingPersona.email, // RFC 2606 reserved domain
      phone: shippingPersona.phone.e164, // NANP 555-01xx regulator safe
    },
    shippingAddress: {
      line1: shippingPersona.streetLine1,
      city: shippingPersona.cityEn,
      state: shippingPersona.regionCode, // Stays consistent with city & ZIP
      postalCode: String(shippingPersona.postalCode),
      country: shippingPersona.countryCode,
    },
    billingPostalCode: String(billingPostal),
    paymentSandbox: {
      brand: card.brand,
      pan: card.number, // Official Stripe sandbox test PAN
      expiry: card.expiry,
      cvc: card.cvc,
    },
  };
}
Test live in the workbench Synthetic Format Specimen · Not Verified for Mail Delivery · Checked 2026-11-22

Frequently Asked Questions

Can Stripe sandbox test cards process real transactions in production?

No. Gateway test numbers such as 4242 4242 4242 4242 only work in sandbox/test API mode and are rejected by live payment processors.

Why include American Express 3782 822463 10005 in address & checkout QA?

Amex uses 15 digits (4-6-5 grouping) and a 4-digit security code instead of 16 digits and a 3-digit CVC. Many custom checkout forms inadvertently reject valid Amex formatting or truncate the 4th CVC digit.

How do I verify leading-zero tax-free ZIP codes at checkout?

Generate a New Hampshire (NH 03101) persona in the Test Identity Workbench, complete a sandbox checkout, and confirm both the order confirmation JSON and exported CSV keep the leading zero intact.

All Guides