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.
- Select US Tax-Free baseline fixtures: Use Delaware (19801) or Oregon (97204) for guaranteed 0% state and 0% local retail sales tax assertions.
- Add New Hampshire (03101) for leading-zero AVS checks: Verify your payment serializer preserves string "03101" inside billing_details.address.postal_code.
- 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.