Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

5282 articles

Adds support for automatic surcharge calculations on Checkout Sessions


Public preview

Adds support for automatic surcharge calculations on Checkout Sessions Public preview

What’s new

Adds support for automatic surcharge calculations on Checkout Sessions. When you set automatic_surcharge.enabled to true, Stripe calculates a surcharge after the customer provides their payment details and billing address.

Impact

You can now collect surcharge fees when using Checkout Sessions. A surcharge is a fee added to a transaction to offset payment processing costs. It’s typically a percentage of the order amount you charge customers when they use certain payment methods (primarily credit cards).

Changes

ParametersChangeResources or endpoints
automatic_surchargeAddedCheckout. Session Checkout. Session#create
surcharge_costAddedCheckout. Session
amount_surchargeAddedCheckout. Session. total_details

Upgrade

  1. View your current API version in Workbench.
  2. If you use an SDK, upgrade to the corresponding SDK version for this API version.
  • If you don’t use an SDK, update your API requests to include Stripe-Version: 2026-04-22. preview
  1. Upgrade the API version used for webhook endpoints .
  2. Test your integration against the new version.
  3. If you use Connect, test your Connect integration .

Learn more about Stripe API upgrades.

Last verified 2026-09-25

Is this helpful?