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
Get started with Connect
Integration fundamentals
Example integrations
Account management
Onboard accounts
Configure account Dashboards
    Get started with Connect embedded components
    Customize Connect embedded components
    Supported Connect embedded components
      Onboarding and compliance
      Account management
      Account onboarding
      Notification banner
      Payment management
      Payments
      Payment details
      Disputes for a payment
      Disputes list
      Payment method settings
      Payout management
      Payouts
      Payouts list
      Balances
      Instant payouts promotion
      Capital
      Capital components
      Tax
      Tax registrations
      Tax settings
      Export tax transactions
      Tax threshold monitoring
      Product tax code selector
      Treasury and issuing
      Financial account
      Financial account transactions
      Issuing card
      Issuing cards list
      Reporting
      Documents
      Reporting chart
      Apps
      App install
      App viewport
    Stripe Dashboard customization
    Platform controls for Stripe Dashboard accounts
    Express Dashboard
Work with connected account types
Payment processing
Accept payments
Pay out to accounts
Platform administration
Manage your Connect platform
Tax forms for your Connect platform
HomePlatforms and marketplacesConfigure account DashboardsSupported Connect embedded components

Product tax code selectorPrivate preview

Allow connected accounts to classify products with a tax code.

The product tax code selector component lets your connected accounts classify their products. Connected accounts typically interact with this component on the product page within your platform. This component suits both software platforms and marketplaces for integration into their user interfaces. Connected accounts can use the product tax code selector to choose the appropriate tax code for each product. Either the platform or the connected accounts can be liable for tax collection.

If you’re a platform integrating Stripe Tax, you must specify the tax code of a product for Stripe Tax to calculate taxes correctly.

The Product tax code selector component uses the Tax codes API to display all available tax codes. When a connected account selects a new product tax code, an event handler is called that you can listen to. Use this to update the tax code of a product within your platform. All tax codes in this component are translated into all languages that Connect embedded components support.

Integrate the product tax code selector component

When creating an Account Session, enable the product tax code selector component by specifying product_tax_code_selector in the components parameter.

Command Line
cURL
Ruby
Python
PHP
Java
Node
Go
.NET
No results
curl https://api.stripe.com/v1/account_sessions \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -H "Stripe-Version: 2025-07-30.basil; embedded_connect_beta=v2;" \ -d account=
{{CONNECTED_ACCOUNT_ID}}
\ -d "components[product_tax_code_selector][enabled]"=true

After creating the account session and initializing Connect.js, render the product tax code selector component in the front end:

productPage.jsx
React
HTML + JavaScript
No results
// Include this React component import { ConnectProductTaxCodeSelector, ConnectComponentsProvider, } from "@stripe/react-connect-js"; return ( <ConnectComponentsProvider connectInstance={stripeConnectInstance}> <div> <h2>Tax code</h2> <ConnectProductTaxCodeSelector // Optional // onTaxCodeSelect={(id: string) => {console.log({id})}} // hideDescription={false} // disabled={false} // initialTaxCode={"txcd_99999999"} /> </div> </ConnectComponentsProvider> );
MethodTypeDescriptionDefaultRequired or optional
setOnTaxCodeSelect(id: string) => voidA callback function that accepts the ID of the tax code when the user selects one. To receive more information about the tax code, use the Retrieve a tax code endpoint.undefinedOptional
setHideDescriptionbooleanSet to true to hide the tax code description in the product tax code selector.falseOptional
setDisabledbooleanSet to true to disable the dropdown of the product tax code selector.falseOptional
setInitialTaxCodestringSet to one of Stripe’s supported tax codes such as txcd_10000000 to auto-select an initial tax code.undefinedOptional

Request early access Private preview

Sign in or register for Stripe to request access to this Connect embedded component preview.

See also

  • Tax on Connect
  • Tax for software platforms
  • Tax for marketplaces
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