Skip to content

Stripe Shared Payment Tokens

Module: Magenx_StripeSharedPaymentTokens · requires the official Stripe module (stripe/module-payments) · no GraphQL changes

When an AI agent such as ChatGPT checks out through the storefront’s Agentic Commerce Protocol (ACP) API, it can’t run Stripe’s browser code. It hands over a Stripe Shared Payment Token (spt_…) instead. The official Stripe module doesn’t know how to charge one. This module teaches it, inside Magento’s normal order placement.

spt_… tokenstock placeOrderconfirm with the shared token

AI agent

Storefront ACP API

Magento + Stripe module

Stripe

Order, invoice, refunds
as usual in Magento

  • Only the payment confirmation changes. The order, invoice, refunds and webhooks stay in Magento and the Stripe module.
  • Every other checkout (normal, Express Checkout, subscriptions, admin) is untouched.
  • A shared token can’t be saved for later, so the card is never stored.
  • If the feature is off for the store, a shared token is refused before anything reaches Stripe.
  1. Enable Agentic Commerce on your Stripe account.
  2. Install the module, then enable it in Stores > Configuration > Sales > Payment Methods > Stripe Shared Payment Tokens.
  3. On the storefront, set ACP_SHARED_PAYMENT_TOKENS=1. Until then the ACP API refuses spt_… tokens itself.
Terminal window
composer require magenxcommerce/module-stripe-shared-payment-tokens
bin/magento module:enable Magenx_StripeSharedPaymentTokens
bin/magento setup:upgrade
bin/magento setup:di:compile # production mode only
bin/magento cache:flush

This module used to be called StripeIntegration_SharedPaymentTokens. Settings carry over. Remove the old module, install this one, and delete any StripeIntegration_SharedPaymentTokens line left in app/etc/config.php before running setup:upgrade.

Stores > Configuration > Sales > Payment Methods

Stripe Shared Payment Tokens (agentic checkout)

SettingDefaultScopeNotes
Enabled
payment/stripe_shared_payment_tokens/enabled
NoStore viewYes/No. Lets an AI agent platform pay for an order with a Stripe Shared Payment Token (spt_…) passed as the Stripe payment method. When off, an order carrying one is refused before anything is charged. Requires Agentic Commerce to be enabled on the Stripe account.
Stripe API version for token payments
payment/stripe_shared_payment_tokens/api_version
2026-09-30.previewStore viewText. Shown when Enabled = Yes. Stripe-Version used only while confirming a payment made with a shared payment token (they are a preview API). Every other Stripe call keeps the Stripe module's own version.