| [ Web Proxy ] |
| Viewing: https://docs.stripe.com/payments/managed-payments/update-checkout | [Back] [Original] |
Update your existing Stripe Checkout integration to use Managed Payments. The Stripe merchant of record solution handles indirect tax compliance in more than 80 countries, along with fraud prevention, dispute management, and transaction-level customer support. You can only enable Managed Payments for new subscriptions purchased through a Managed Payments Checkout Session. Existing subscriptions arent eligible.
If you dont have an existing Checkout integration, set up Managed Payments instead.
payment or subscription mode.2025-03-31.basil or later. You must accept the Managed Payments terms of service in the Dashboard before you can use Managed Payments.
Use the Dashboard or API to set a tax code for each of your products. To calculate taxes, you must select a tax code thats eligible for Managed Payments.
To update a products tax code:
Eligible for Managed Payments.If you create your products inline when creating your Checkout Session, include tax_code in the product_data object.
curl https://api.stripe.com/v1/checkout/sessions \ -u "sk_test_wU7nrJCZspk1NPDxiQgAF05q:" \ -d "line_items[0][price_data][product_data][name]=Basic subscription" \ -d "line_items[0][price_data][product_data][tax_code]={{TAX_CODE}}" \ -d "line_items[0][price_data][recurring][interval]=month" \ -d "line_items[0][quantity]=1" \ -d mode=subscription \ --data-urlencode "success_url=https://example.com/success"
Set the managed_payments[enabled] parameter by updating your servers call to the Checkout Session API.
curl https://api.stripe.com/v1/checkout/sessions \ -u "sk_test_wU7nrJCZspk1NPDxiQgAF05q:" \ -d "line_items[0][price]=" \ -d "line_items[0][quantity]=1" \ -d "managed_payments[enabled]=true" \ -d mode=subscription \ --data-urlencode "success_url=https://example.com/success"{{PRICE_ID}}
To act as the merchant of record, Stripe controls some parts of the Checkout Session. As a result, some parameters arent available when using Managed Payments, and you must remove them when creating Managed Payments Checkout Sessions.
| Category | Parameter | Reason |
|---|---|---|
| Adaptive Pricing | adaptive_pricing | Adaptive Pricing is always enabled for Managed Payments. |
| Tax | automatic_tax | Managed Payments handles tax calculation and withholding for you. |
tax_id_collection | ||
subscription_data.default_tax_rates | ||
| Payment methods | payment_method_configuration | Managed Payments controls the payment methods available in the Checkout Session using dynamic payment methods to display the most relevant payment methods to your customer. Learn more about configuring payment method settings for Managed Payments. |
payment_method_options | ||
payment_method_types | ||
| Customer update | customer_update[name] | Managed Payments requires that your customer has a name and a valid billing address to calculate sales tax. If you provide the ID of an existing customer_account or customer when you create the Checkout Session, that object is updated with any changes to the customers name or billing address. |
customer_update[address] | ||
| Shipping | shipping_address_collection | Managed Payments only supports digital products, so shipping information is never collected. |
shipping_options | ||
| Connect | subscription_data.application_fee_percent | Managed Payments doesnt support Connect integrations. |
subscription_data.on_behalf_of | ||
subscription_data.transfer_data | ||
| Post-sale | subscription_data.invoice_settings | Managed Payments handles post-sale actions, such as invoicing and confirmation emails. |
invoice_creation |
Test that your integration works correctly for your customers. For additional information, see Testing.
4242 4242 4242 4242 with any CVC and an expiration date in the future.When a customer purchases a subscription through Managed Payments, it only authorizes Managed Payments to charge their payment method. Make sure you obtain the appropriate consent from your customer to charge this payment method for any transactions outside of Managed Payments.
In sandbox mode, you wont receive receipt emails automatically after purchase, but you can manually send them using the instructions above.
Link acts as the merchant of record at checkout and provides subscription management and transaction support on the Link website.
You can test how Link works during checkout by creating a Link account during an initial Checkout Session. After you create the Link account, attempt another session using the same email address. To authenticate, use the test passcode 000000.
Test purchases wont appear in the Link app. You can test the order management tools in the Link app by creating a Link account during a live mode Checkout Session.
The tax_behavior of a price specifies whether tax is added on top of the price you set (tax_behavior: exclusive) or already included in the price (tax_behavior: inclusive).
Managed Payments uses the tax behavior specified on your price. If you dont specify the prices tax behavior, Managed Payments adds tax on top of the price you set, by default.
To change the default, go to the Tax settings page in the Dashboard, and update the Include tax in prices setting.
| Web Proxy Viewer | New URL | Original Page |