{
  "mode": "test (mock Stripe)",
  "currency": "USD",
  "charged": "at order submit, before production; shipping at carrier cost is included in the total",
  "methods": [
    {
      "method": "agent_token",
      "how": "Send {\"method\":\"agent_token\",\"shared_payment_token\":\"spt_...\"}: a Stripe Shared Payment Token your agent granted to our Stripe profile. No card details reach Madely."
    },
    {
      "method": "card_on_file",
      "how": "Save a card once with POST /v1/payment-methods, then send {\"method\":\"card_on_file\"}. Charged per order, off-session."
    },
    {
      "method": "balance",
      "how": "Top up with POST /v1/balance/top-ups, then send {\"method\":\"balance\"}. Orders debit the balance."
    }
  ],
  "default_when_payment_omitted": "balance if it covers the order, otherwise the card on file, otherwise a 402 payment_required with a fix",
  "max_cost_usd": "Set max_cost_usd on the order; a charge above it is refused.",
  "refunds": "POST /v1/orders/{order_id}/cancel before it ships refunds the full amount to the original method (balance orders credit the balance).",
  "stripe": {
    "publishable_key": "pk_test_51Ui1BNLQt6zSsZMVPiwY8m8vnJQz5jiBX0GUFdWBdRufUBoV6LUaKiMscZqQ7UrQmvx8DZWc47UzzQ9o8Sk63DWp00L4ko2Bj4",
    "profile_id": "profile_test_61VrkB0XwlLf0T0sIA6VrkB079SQUMsvBMOZN85NAT2u",
    "profile_id_live": "profile_61VrkAxa3rlOJzhYXA6VrkAw6KSQhlWjQftYaRLhoH1k",
    "profile_id_sandbox": "profile_test_61VrkB0XwlLf0T0sIA6VrkB079SQUMsvBMOZN85NAT2u",
    "profile_mode": "mock",
    "profile_note": "Agents grant Shared Payment Tokens to this Stripe profile (seller_details[network_business_profile]). Override with STRIPE_PROFILE_ID.",
    "api_version": "mock of 2026-09-30.preview",
    "spt_docs": "https://docs.stripe.com/agentic-commerce/sellers/one-time-payments"
  },
  "sandbox_helpers": [
    "POST /v1/sandbox/shared-payment-tokens",
    "POST /v1/payment-methods {\"payment_method_id\":\"pm_card_visa\"}",
    "POST /v1/sandbox/stripe/deliver-events"
  ],
  "test_payment_methods": [
    "pm_card_visa (succeeds)",
    "pm_card_chargeCustomerFail (saves, then every charge is declined)",
    "pm_card_chargeDeclinedInsufficientFunds",
    "pm_card_authenticationRequired (off-session fails)"
  ],
  "docs": "https://api.madely.ai/llms-full.txt#payments"
}