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 Scenario | Stripe Test Card | Ship-To Fixture | Expected 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.
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,
},
};
}