Skip to Content
🚀Agentic Commerce Protocol is now live! Instant Checkout is available in ChatGPT. Learn more →
DocumentationAPI SpecificationsDelegated Payment Spec

Delegated Payment Specification

Enable secure payment credential sharing without exposing sensitive information.

Stripe’s Shared Payment Token (SPT) is the first implementation of this spec.

How It Works

  1. User provides payment method to AI agent
  2. Agent requests a Shared Payment Token scoped to merchant and amount
  3. Token is passed to merchant during checkout
  4. Merchant charges the token through their payment provider

Token Properties

PropertyDescription
Single-useCannot be reused after charge
Merchant-scopedOnly works for intended merchant
Amount-limitedCannot charge more than authorized
Time-limitedExpires after ~30 minutes

Stripe Integration

// Accept Shared Payment Token const paymentIntent = await stripe.paymentIntents.create({ amount: cartTotal, currency: 'usd', payment_method: sharedPaymentToken, confirm: true, payment_method_options: { card: { request_delegated_payment: true }, }, });

Error Codes

CodeDescription
token_expiredToken has expired
token_invalidInvalid format
token_already_usedAlready charged
amount_exceededExceeds authorization
payment_declinedCard declined

Security

Never store tokens. Charge immediately and discard.

  • Tokens protect raw card data
  • Reduces PCI scope (SAQ A eligible)
  • Full audit trail of usage

Specification maintained by OpenAI and Stripe

AboutPrivacyTermsRSS

Apache 2.0 · Open Source