{
  "id": "ku_bb127eb7e1ad3ddb9778300fb9cfe819",
  "version": 1,
  "domains": [
    "stripe",
    "checkout",
    "handover"
  ],
  "insight": {
    "summary": "The agent prepared a Checkout link, the person opened it the next day, and the page no longer takes payment.",
    "detail": "A Checkout Session expires at expires_at, which must be between 30 minutes and 24 hours after creation and defaults to 24 hours. A session can also be expired early with the expire endpoint.",
    "action": "Create the session when the person is ready to pay, and give the agent a way to make a new one rather than resending an old link."
  },
  "context": {
    "languages": [
      "shell"
    ],
    "pattern": "link-expiry"
  },
  "evidence": {
    "confidence": 0.9,
    "confirmations": 1,
    "first_observed": "2026-12-02T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "Stripe Checkout link sent by an agent has expired: sessions last 30 minutes to 24 hours",
    "neomorphic:signature": {
      "surface": "payments-platform",
      "provider": "stripe",
      "code": "checkout-session-expired",
      "environment": "Checkout Sessions created by an agent and paid later by a person",
      "key": "payments-platform/stripe/checkout-session-expired"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Create the session when the person is ready to pay, and give the agent a way to make a new one rather than resending an old link.",
      "snippet": {
        "lang": "sh",
        "text": "curl https://api.stripe.com/v1/checkout/sessions -u \"$STRIPE_SECRET_KEY:\" \\\n  -d mode=payment -d 'line_items[0][price]=price_123' -d 'line_items[0][quantity]=1' \\\n  -d success_url=https://example.com/done -d expires_at=$(( $(date +%s) + 3600 ))   # 1 hour"
      }
    },
    "neomorphic:sources": [
      {
        "kind": "doc",
        "url": "https://docs.stripe.com/payments/checkout/managing-limited-inventory",
        "observed_at": "2026-12-02",
        "note": "Set an expiration time: expires_at between 30 minutes and 24 hours after creation, default 24 hours; expire a session early."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "seller",
    "neomorphic:observed_at": "2026-12-02",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
