Payments & Tax QA 7 min 2026-11-22

Testing Stripe AVS & US Sales Tax Calculation with Tax-Free ZIP Codes

How to structure Stripe shipping and billing_details objects to assert 0% state tax, local borough overrides, and leading-zero AVS behavior.

Implementation Checklist
  1. Select US Tax-Free baseline fixtures: Use Delaware (19801) or Oregon (97204) for guaranteed 0% state and 0% local retail sales tax assertions.
  2. Add New Hampshire (03101) for leading-zero AVS checks: Verify your payment serializer preserves string "03101" inside billing_details.address.postal_code.
  3. Contrast Anchorage (99501) vs. Juneau (99801): Assert that your tax engine evaluates ZIP/borough level local tax inside a 0%-state-tax state.

Separating Clean 0% States from Local-Tax Edge States

Not all five "no-sales-tax" states behave identically in Stripe Tax or Avalara. Delaware (DE), Oregon (OR), and New Hampshire (NH) levy 0% statewide AND 0% local general retail sales tax. By contrast, Alaska (AK) has 0% state sales tax but over 100 local municipal/borough taxes (Juneau 99801 is taxed while Anchorage 99501 is 0%), and Montana (MT) allows local resort taxes in designated tourist zones.

Stripe Checkout / PaymentIntent Fixture Shape

AddressQA’s Stripe Checkout tab directly emits the nested shipping and billing_details schema expected by Stripe SDKs, complete with E.164 phone formatting and QA metadata.

{
  "shipping": {
    "name": "Clara Keller",
    "phone": "+13025550148",
    "address": {
      "line1": "1420 N Market St",
      "line2": "Suite 310",
      "city": "Wilmington",
      "state": "DE",
      "postal_code": "19801",
      "country": "US"
    }
  },
  "billing_details": {
    "name": "Clara Keller",
    "email": "[email protected]",
    "phone": "+13025550148",
    "address": {
      "line1": "1420 N Market St",
      "line2": "Suite 310",
      "city": "Wilmington",
      "state": "DE",
      "postal_code": "19801",
      "country": "US"
    }
  }
}

Catching AVS Postal Truncation Early

Address Verification Service (AVS) compares the numeric street number and postal code submitted with the card billing address. Always run at least one New England fixture (New Hampshire 03101 or Massachusetts 02108) to verify zero-padding survives JSON serialization, ORM persistence, and webhook replay.

Further Reading

More QA Engineering Guides

CI & E2E Automation

Deterministic Address Fixtures in Playwright & Cypress CI Pipelines

Why unseeded random address libraries break CI snapshots and how to wire deterministic AddressQA fixtures into Playwright test.use() hooks.

Telecom Compliance

Regulator-Safe Test Phone Numbers: NANPA 555, Ofcom, ACMA & E.164 Reference

Why random phone numbers risk contacting real subscribers — and the exact regulator-reserved blocks AddressQA uses in Safe mode.

Validation Engineering

International Postal Code Boundary-Value Analysis for Checkout Forms

The five postal code bug classes that silently break global conversions — and how to reproduce every one in AddressQA.