> For the complete documentation index, see [llms.txt](https://woo-docs.payaddons.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://woo-docs.payaddons.com/fundamentals/stripe-managed-payments.md). Agents can also search and read this documentation through its [MCP server](https://woo-docs.payaddons.com/~gitbook/mcp).

# stripe managed payments

Let Stripe be the merchant of record for your WooCommerce digital sales. Enable Managed Payments, set tax codes, and route by country in minutes.

**Stripe Managed Payments** lets Stripe act as the **merchant of record (MoR)** for your WooCommerce digital sales. Stripe calculates and remits sales tax, VAT, and GST, handles fraud and disputes, and supports your customers at the transaction level, while you keep selling from your own WooCommerce store.

**Our plugin** supports Managed Payments through its **Stripe Checkout Redirect** payment method. This guide shows you how to turn it on, configure your products, and (optionally) route specific countries around it. It works with both one-time payments and subscriptions.

### Stripe Managed Payments at a glance

* [x] **Works with** Stripe Checkout Redirect payment method
* [x] **Products** Digital products only (must be marked Virtual)
* [x] **Payment types** One-time payments and subscriptions
* [x] **Tax** Calculated and remitted by Stripe
* [x] **Optional** Country-based routing

### Requirements

Before you start, make sure you have:

* A **Stripe account** with Managed Payments enabled and the terms of service accepted (see [Step 1](#step-1-enable-managed-payments-in-the-stripe-dashboard)).
* **Digital products only.** Physical goods, shipping, and in-person delivery are not supported by Managed Payments.
* An **eligible Stripe product tax code** on every product.
* For subscriptions: the **WooCommerce Subscriptions** plugin (`woocommerce-subscriptions`).

### How to set up Stripe Managed Payments in WooCommerce

Follow these four steps in order.

#### Step 1: Enable Managed Payments in the Stripe Dashboard

1. Sign in to the [Stripe Dashboard](https://dashboard.stripe.com/).
2. Go to **Payments → Managed Payments** (or **Settings → Managed Payments**).
3. Follow the onboarding flow, complete the eligibility review, and **accept the terms of service**.
4. Confirm the feature shows as **Active**.

> **Important:** Managed Payments must be active in Stripe *before* you enable it in the plugin. Otherwise, Checkout Session creation will fail.

#### Step 2: Enable Managed Payments in the plugin

1. In WordPress, go to **WooCommerce → Settings → Payments**.
2. Click **Manage** next to **Stripe Checkout Redirect**.
3. Check **Managed Payments (Merchant of Record) → Enable Stripe Managed Payments**.
4. Click **Save changes**.

<figure><img src="https://2515576520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG0PUsYuzKts2zzoPrZBP%2Fuploads%2FZSjd8wz6UdwiZidBOSNb%2Fimage.png?alt=media&amp;token=6e87a1ea-1e56-432d-889f-5a132d0cd189" alt=""><figcaption></figcaption></figure>

> While this mode is active, the **Saved Cards** and **Stripe Tax (automatic tax)** options are ignored, because Stripe controls them when acting as the merchant of record.

#### Step 3: Configure your products

Every product sold through Managed Payments **must** have an eligible Stripe product tax code and be a digital product.

#### 3a. Set the `tax_code` attribute

The plugin reads the product's `tax_code` attribute and forwards it to Stripe as the line item's `product_data.tax_code`.

1. Edit the product in **Products → All Products**.
2. Open **Product data → Attributes** and add a **Custom product attribute**:
   * **Name:** `tax_code`
   * **Value(s):** an eligible Stripe product tax code, for example `txcd_10103001` (Software as a service (SaaS), business use).
3. Click **Save attributes**, then **Update** the product.

<figure><img src="https://2515576520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG0PUsYuzKts2zzoPrZBP%2Fuploads%2FvzoQRr00AFAKNu7uiNYv%2Fimage.png?alt=media&amp;token=f861ebef-5b13-4efc-aa65-87910baf7199" alt=""><figcaption></figcaption></figure>

> **The tax code must be eligible for Managed Payments.** Not every `txcd_...` code qualifies. Check Stripe's [product tax code requirements](https://docs.stripe.com/payments/managed-payments/eligibility#product-tax-code-requirements) for the list of codes eligible for merchant-of-record sales.

#### 3b. Mark the product as Virtual

Managed Payments supports digital products only. Marking each product as Virtual stops WooCommerce from requiring a shipping address or calculating shipping.

1. Edit the product.
2. In the **Product data** panel, check **Virtual** (and **Downloadable**, if applicable).
3. Click **Update**.

<figure><img src="https://2515576520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG0PUsYuzKts2zzoPrZBP%2Fuploads%2FfYu7w8STLSBzfSyBdxW1%2Fimage.png?alt=media&amp;token=c1381faf-8a64-44cd-8e68-da2f7d81d063" alt=""><figcaption></figcaption></figure>

#### Step 4: Configure WooCommerce tax and shipping

Stripe, not WooCommerce, calculates and remits tax in this mode. Keep WooCommerce's totals in sync with what Stripe charges.

#### 4a. Disable WooCommerce tax

1. Go to **WooCommerce → Settings → General**.
2. Uncheck **Enable tax rates and calculations**.
3. Click **Save changes**.

<figure><img src="https://2515576520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG0PUsYuzKts2zzoPrZBP%2Fuploads%2FI3fNVf95CJyXZvGYCdOD%2Fimage.png?alt=media&amp;token=9ac0f76d-e99b-4ab6-a88e-b138ec0a98f3" alt=""><figcaption></figcaption></figure>

> **Can't disable tax globally?** At minimum, set the Managed Payments products to **non-taxable** (tax status `None`). Otherwise customers could be taxed twice: once by WooCommerce in the order total, and once by Stripe as the merchant of record.

#### 4b. Remove shipping

1. Go to **WooCommerce → Settings → Shipping**.
2. Disable or remove the shipping methods in your **shipping zones**, or confirm no shipping is offered at checkout.
3. Make sure products are marked **Virtual** (see [3b](#3b-mark-the-product-as-virtual)) so WooCommerce skips shipping entirely.

**The goal:** the WooCommerce order total equals the product subtotal, with tax and shipping left entirely to Stripe.

### Use Stripe Managed Payments with WooCommerce subscriptions

Managed Payments works with recurring billing when the [WooCommerce Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/) plugin is active.

1. Install and activate **WooCommerce Subscriptions**.
2. Create a **Simple Subscription** or **Variable Subscription** product.
3. Mark it **Virtual** and set the `tax_code` attribute as described in [Step 3](#step-3-configure-your-products).
4. At checkout, the plugin creates a `mode: "subscription"` Checkout Session and applies the same Managed Payments constraints.

Country routing (below) applies equally to subscription sessions.

### Route countries in or out of Managed Payments (optional)

By default, Managed Payments applies to **all eligible countries**. If you want regular Stripe processing for some countries (for example, the US) and MoR for the rest, use the **Country Routing** settings.

<figure><img src="https://2515576520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG0PUsYuzKts2zzoPrZBP%2Fuploads%2FzG4KW9t4aAyVIX8QN8cd%2Fimage.png?alt=media&amp;token=2a763442-4882-423c-b3a8-49756e525852" alt=""><figcaption></figcaption></figure>

#### How country routing works

The plugin reads the **WooCommerce billing country** the customer selects at checkout. When it creates the Checkout Session, it decides whether to send `managed_payments[enabled]=true` to Stripe for that order.

| Routing mode                         | Behavior                                         |
| ------------------------------------ | ------------------------------------------------ |
| **All eligible countries** (default) | Every order uses Managed Payments                |
| **Exclude selected**                 | MoR for all countries *except* the ones you list |
| **Include only selected**            | MoR only for the countries you list              |

#### Configure country routing

1. Go to **WooCommerce → Settings → Payments → Stripe Checkout Redirect**.
2. Find the **Managed Payments: Country Routing** dropdown and choose a mode (for example, **All countries EXCEPT selected** to exclude the US).
3. In the **Managed Payments: Countries** multiselect, pick the countries the rule applies to (for example, **United States**).
4. Click **Save changes**.

<figure><img src="https://2515576520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG0PUsYuzKts2zzoPrZBP%2Fuploads%2FeiKkS1y1HLBfmszSJxTk%2Fimage.png?alt=media&amp;token=177dfc9f-d43a-4a8b-b6f4-6f62519d3ef6" alt=""><figcaption></figcaption></figure>

For a US-only exclusion, the result is:

* **US billing address** → regular Stripe checkout (no MoR)
* **All other billing addresses** → Stripe Managed Payments (MoR)

When routing skips MoR for an order, the session is created exactly as it would be without Managed Payments: normal Stripe checkout, with automatic tax and saved cards applied as configured.

### Troubleshooting Stripe Managed Payments in WooCommerce

#### Error: `Invalid line_items[N]: the product tax code is missing`

A line item reached Stripe without an eligible product tax code. `N` is the 0-based index of the offending line item.

Common causes:

* **The product has no `tax_code` attribute**, or its value is empty. Add it as described in [Step 3a](#3a-set-the-tax_code-attribute).
* **The tax code is not eligible** for Managed Payments. Verify it against Stripe's [eligibility list](https://docs.stripe.com/payments/managed-payments/eligibility#product-tax-code-requirements).
* **A non-product line item (tax, shipping, or fee) is being sent.** The plugin handles this automatically in Managed Payments mode. If you still see the error, update the plugin and confirm the `enable_managed_payments` option is saved as `yes`.

#### Order total mismatch between WooCommerce and Stripe

This usually means WooCommerce is still adding tax or shipping on top of Stripe's merchant-of-record charges. Re-check [Step 4](#step-4-configure-woocommerce-tax-and-shipping): disable WooCommerce tax and shipping, and mark products as Virtual.

#### Country routing not working as expected

* Confirm **Enable Stripe Managed Payments** is checked and saved.
* Make sure the countries multiselect is not empty when using exclude or include modes. An empty list is treated the same as "all countries".
* Routing is based on the **WooCommerce billing country**, not the address Stripe collects. Verify the customer selects the correct country on the WooCommerce checkout page before being redirected to Stripe.

### Frequently asked questions

#### What is a merchant of record in Stripe Managed Payments?

The merchant of record is the seller of record for a transaction. With Stripe Managed Payments, Stripe (via Link) takes that role: it calculates and remits sales tax, VAT, and GST, handles fraud, disputes, and refunds, and provides transaction-level support to your customers.

#### Can I use Stripe Managed Payments for physical products in WooCommerce?

No. Managed Payments supports digital products only. Physical goods, shipping, and in-person delivery are not supported, so every product must be marked **Virtual** in WooCommerce.

#### Does Stripe Managed Payments work with WooCommerce subscriptions?

Yes. Activate the WooCommerce Subscriptions plugin, create a Simple or Variable Subscription product, mark it Virtual, and set the `tax_code` attribute. The plugin then creates a subscription-mode Checkout Session with the same Managed Payments settings.

#### Do I need to enable WooCommerce tax when using Managed Payments?

No, and you should leave it disabled. Stripe calculates and remits tax as the merchant of record, so WooCommerce tax on top would charge customers twice. If you can't disable tax globally, set the affected products' tax status to `None`.

#### Can I use Managed Payments for only some countries?

Yes. Use the **Country Routing** setting to exclude selected countries or to include only selected countries. The decision is based on the billing country chosen at WooCommerce checkout when the Checkout Session is created.

#### Which Stripe tax code should I use?

Use an eligible Stripe product tax code that matches your product. Not every `txcd_...` code qualifies for Managed Payments. For example, `txcd_10103001` covers software as a service (SaaS) for business use. Check Stripe's product tax code requirements for the full list.

#### Why does Checkout Session creation fail after I enable Managed Payments?

Managed Payments must be active in your Stripe account before you enable it in the plugin. Also check that every product has an eligible `tax_code` attribute and is marked Virtual.

#### Get started

Ready to let Stripe handle tax, fraud, and disputes on your WooCommerce digital sales? Get [Payment Gateway for WooCommerce with Stripe](broken://pages/5ab36bf975e2ab8dbd6ea9cff894b75a5cbc0426) and follow the steps above.
