## Collecting Taxes in Custom Integrations

This section details how to implement tax calculations within your custom payment flows using Stripe Tax APIs.

### Overview

Stripe Tax APIs allow you to calculate tax in custom payment flows. After a customer completes their payment, you can record the transaction to ensure it appears in Stripe Tax reporting. While the examples in this guide utilize Stripe's payment APIs, the Tax API can be integrated with any payment processor or multiple processors simultaneously.

### Choosing the Right Tax Integration

Stripe offers two primary methods for handling tax in custom payment flows, allowing you to select the option that best suits your control requirements over tax reversals:

*   **Payment Intents Integration:** This approach is ideal if you prefer Stripe to automatically manage tax transactions and reversals, and if flat-amount refund reversals meet your needs.
*   **Custom Tax API:** Opt for this integration when you require line-item level control over tax reversals (e.g., refunding specific items), work with multiple payment processors, or need complete control over when transactions are recorded.

Additionally, Stripe offers a public preview feature that enables the use of the **Tax ID Element** for collecting tax IDs from customers. For more information, refer to the "Collect customer tax IDs" section.

Alternatively, you can integrate Stripe Tax with Payment Links, Checkout, and Billing with minimal or no coding required.

### Video Tutorial

This video provides a step-by-step guide on integrating Stripe Tax using the Payment Intents API and the Payment Element:

[Link to video tutorial]

### Adding Registrations

Stripe Tax only calculates tax in jurisdictions where you have registered. Ensure you have added the necessary registrations to enable tax calculations.