Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Revenue
Platforms and marketplaces
Money management
Developer resources
Overview
Billing
OverviewAbout the Billing APIs
Subscriptions
Invoicing
Usage-based billing
Quotes
Customer management
Billing with other products
Revenue recovery
Automations
Test your integration
Tax
Overview
Use Stripe tax
    How Tax works
    Set up collection
    Configure behavior
    Testing
    Find your payment type
    Find your business type
    Supported countries
Manage compliance
Reporting
Overview
Select a report
Configure reports
Reports API
Reports for multiple accounts
Revenue recognition
Data
OverviewSchema
Custom reports
Data Pipeline
Data management
HomeRevenueUse Stripe tax

Testing Stripe Tax

Learn how to test your Stripe Tax integration.

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