{
  "slug": "stripe-confirmation-tokens-support-metadata-a5f6c07118b5",
  "title": "Stripe Confirmation Tokens support metadata",
  "tools": [
    "stripe"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-26T00:00:00.000Z",
  "announced_at": "2026-08-26T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When an Elements payment flow creates a ConfirmationToken for server-side confirmation, call `stripe.createConfirmationToken` with metadata in `params`; then retrieve the token server-side with your secret key and read `metadata`.",
    "examples": [
      "const {confirmationToken, error} = await stripe.createConfirmationToken({elements, params: {metadata: {order_id: \"<order_id>\"}}});",
      "stripe.confirmationTokens.retrieve(\"<confirmation_token_id>\")"
    ],
    "gotchas": [
      "Version: 2026-08-26.dahlia",
      "elements (required): Elements instance used to create the Express Checkout Element or Payment Element; `stripe.createConfirmationToken` collects payment, billing, and shipping details from it.",
      "params: Parameters passed to the Stripe API; may include `metadata`.",
      "params.metadata: Map of key-value pairs attached to the ConfirmationToken; supports up to 50 pairs. Metadata is not returned in the frontend response.",
      "metadata: Nullable map of key-value pairs on a ConfirmationToken object.",
      "Prerequisite: Use the Elements instance associated with an Express Checkout Element or Payment Element.",
      "Prerequisite: Retrieving the token and its metadata is described for server-side use with a secret key.",
      "Metadata can be attached when creating a ConfirmationToken through Stripe.js.",
      "Up to 50 key-value pairs are supported.",
      "Retrieval with metadata is described for server-side use with a secret key."
    ]
  },
  "why_it_matters": "When implementing a payment flow that creates and retrieves Confirmation Tokens, attach metadata and read it on the server.",
  "sources": [
    "https://docs.stripe.com/changelog/dahlia/2026-08-26/adds-metadata-support-to-confirmation-tokens",
    "https://docs.stripe.com/js/confirmation_tokens/create_confirmation_token",
    "https://docs.stripe.com/api/confirmation_tokens/retrieve?api-version=2026-08-26.dahlia",
    "https://docs.stripe.com/api/confirmation_tokens/object?api-version=2026-08-26.dahlia#confirmation_token_object-metadata"
  ],
  "rank": 0.94024,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-tools-20261017",
    "verdict_id": "wave1b-tools-20261017:wave1b-tools-20261017-7bdf85342959b123-0:gate",
    "evidence_hash": "220c42e420c76975e301458edff95a21a44638d10f0bbe6028ab94dce42ab49b"
  },
  "review": {
    "draft_hash": "47e20c70b8b257d009b8ce8b4c02be69c6ff206b38772ff40f5e32604db5a762",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.63 (>= 0.6 needed)."
  }
}
