Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Developer tools
Get started
Payments
Finance automation
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Overview
Billing
Tax
    Overview
    Get started
    How Tax works
    Set up
    Using the Settings API
    Testing
    Integrate by payment flow
    Payment Links
    Checkout
    Invoicing
    Subscriptions
    Rate card subscriptions
    Custom payment integration
    Integrate with Stripe Connect
    Overview
    Tax for software platforms
    Tax for marketplaces
    Manage your compliance
    Monitor your obligations
    Register
    Calculate tax
    Report
    Third-Party Tax Apps
    File and Remit
    Tax Reference
    Product tax codes
    Supported countries
    FAQ
Reporting
Data
Startup incorporation
HomeFinance automationTax

Testing Stripe Tax

Learn how to test your Stripe Tax integration.

Copy page

You can use Stripe Tax in a sandbox environment to preview automatic tax calculation behavior for different tax settings. Use a sandbox to:

  • Preview tax calculation behavior for different customer locations and registered jurisdictions.
  • Validate that your integration handles automatic tax calculations correctly.
  • Understand zero-tax outcomes.

Configure tax settings for a sandbox

Stripe Tax has separate settings for sandboxes, allowing you to preview changes to your tax settings before applying them in live mode.

When you Set Up Stripe Tax, make sure you enable testing by configuring tax settings in your sandbox.

Add a registration

Stripe Tax only calculates tax in jurisdictions where you’ve added a registration. You must add at least one registration in your sandbox to test your Stripe Tax integration.

Some product tax codes are exempt from sales tax in certain jurisdictions, which can make them challenging to test. For example, some classes of digital goods are exempt from sales tax in the state of California. When you’re testing your Stripe Tax integration, we recommend adding registrations in states that have fewer product-specific exemptions, such as Idaho or New Jersey.

Sandbox registrations don’t affect live mode tax calculations, so you can change them at any time after you’ve verified that your integration is working correctly.

Testing your integration

After you’ve configured your Stripe Tax settings in your sandbox and added registrations, you’re ready to test.

To test in the Dashboard, create an Invoice or Payment Link, and make sure the Use automatic tax calculation toggle is on.

Stripe Dashboard with the automatic tax toggle set to true

Stripe Dashboard with the automatic tax toggle set to true

Review Calculations

Using the payment details page

Note

This functionality isn’t available for tax transactions created using the Tax API. For transactions recorded using the Tax API, see Using the tax transactions page.

After you complete a payment with automatic tax calculation enabled, you can review information about the tax calculation in the Dashboard.

  1. Navigate to the Transactions page in the Dashboard.
  2. Click a payment you created with Stripe Tax enabled.
  3. Scroll down to the Automatic tax calculation section.
Automatic tax calculation details on a payment in the Stripe Dashboard

The Automatic tax calculation section of the payment details screen. Tax wasn’t applied to this transaction because there’s no registration for the tax location.

The Taxability field shows whether tax was collected for a given transaction or explains why no tax was applied. For more information about why Stripe Tax applies zero tax to some transactions, see Zero tax amounts.

Using the tax transactions page

You can view all tax transactions for your account on the Tax Transactions page in the Dashboard. Click an individual transaction to see a detailed breakdown of calculated tax by jurisdiction, and by the individual products included in the transaction.

Was this page helpful?
YesNo
Need help? Contact Support.
Join our early access program.
Check out our changelog.
Questions? Contact Sales.
LLM? Read llms.txt.
Powered by Markdoc