{
  "slug": "stripe-checkout-sessions-restrict-card-funding-types-af4ffa6bbf17",
  "title": "Stripe Checkout Sessions restrict card funding types",
  "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 creating a Checkout Session, set `payment_method_options.card.restrictions.funding_types_blocked` to block specified card types; Stripe says a customer attempting to use a restricted type sees an error.",
    "examples": [
      "curl https://api.stripe.com/v1/checkout/sessions \\\n  -u \"<secret_key>:\" \\\n  -H \"Stripe-Version: 2026-08-26.dahlia\" \\\n  --data-urlencode success_url=\"<success_url>\" \\\n  -d \"line_items[0][price]\"=\"<price_id>\" \\\n  -d \"line_items[0][quantity]\"=1 \\\n  -d mode=payment \\\n  -d \"payment_method_options[card][restrictions][funding_types_blocked][]\"=prepaid"
    ],
    "gotchas": [
      "payment_method_options[card][restrictions][funding_types_blocked]: List of card funding types to block: `credit`, `debit`, and/or `prepaid`. The release note documents the setting and allowed values; create-session request example documents the other required fields shown.",
      "mode (required): Checkout Session mode; `payment` accepts one-time payments.",
      "line_items (required): List of items being purchased; required for `payment` and `subscription` mode.",
      "success_url: Redirect URL after payment or setup; required for embedded or custom UI mode when redirect-based payment methods are enabled, and disallowed for those UI modes.",
      "Prerequisite: To use this parameter, requests must use API version `2026-08-26.dahlia` (or the corresponding SDK/API version upgrade); the Stripe changelog says to set the `Stripe-Version` header for REST requests.",
      "Applies to Checkout Sessions.",
      "Restricted card funding types cause the Checkout Session to show an error."
    ]
  },
  "why_it_matters": "When implementing checkout payment restrictions, configure a Checkout Session to block specified card funding types.",
  "sources": [
    "https://docs.stripe.com/changelog/dahlia/2026-08-26/adds-card-funding-type-filtering-to-checkout-sessions",
    "https://docs.stripe.com/api/checkout/sessions/create?lang="
  ],
  "rank": 0.96031,
  "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-a33b152d51a7a7f2-0:gate",
    "evidence_hash": "ef234c788fe92123d7c9d93cb6f164c28cf1abfcacd7e829e2929e992c22125a"
  },
  "review": {
    "draft_hash": "f7123cac57ea36bff50ea949689f28119dfc78354852bc317649fbe27deeada1",
    "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.96 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
