{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/u-cash/json-schema/u-cash-stripe-schema.json",
  "title": "Stripe",
  "description": "Your own Stripe account keys - enables the card (redirect) rail. Verified against Stripe before storing; secrets are never returned in full.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agents-u.cash-openapi.json#/components/schemas/Stripe",
  "type": "object",
  "required": [
    "secret_key",
    "product_id",
    "webhook_secret"
  ],
  "properties": {
    "secret_key": {
      "type": "string",
      "description": "sk_live_... or sk_test_..."
    },
    "product_id": {
      "type": "string",
      "description": "a one-time product id (prod_...)"
    },
    "webhook_secret": {
      "type": "string",
      "description": "whsec_... from registering the webhook endpoint"
    },
    "publishable_key": {
      "type": "string",
      "description": "optional pk_live_... or pk_test_..."
    }
  }
}