{
  "sandbox": true,
  "notice": "SANDBOX: all payments are simulated. Never send real funds or real card numbers. Crypto addresses below are intentionally invalid so no wallet can pay them.",
  "methods": [
    {
      "method": "card",
      "label": "Card (test cards only)",
      "how": "POST https://agtmart.io/api/checkout {cart_id, payment:{method:\"card\", card_number, exp_month, exp_year, cvc}}",
      "test_cards": {
        "4242424242424242": "approved (visa)",
        "5555555555554444": "approved (mastercard)",
        "4000000000000002": "card_declined",
        "4000000000009995": "insufficient_funds"
      }
    },
    {
      "method": "usdc",
      "label": "USDC stablecoin (simulated)",
      "token": "USDC",
      "decimals": 6,
      "networks": [
        {
          "network": "base",
          "label": "Base",
          "caip2": "eip155:8453",
          "tx_hash_format": "0x followed by 64 hex chars"
        },
        {
          "network": "ethereum",
          "label": "Ethereum",
          "caip2": "eip155:1",
          "tx_hash_format": "0x followed by 64 hex chars"
        },
        {
          "network": "solana",
          "label": "Solana",
          "caip2": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
          "tx_hash_format": "base58 transaction signature, 86-88 chars"
        },
        {
          "network": "polygon",
          "label": "Polygon PoS",
          "caip2": "eip155:137",
          "tx_hash_format": "0x followed by 64 hex chars"
        }
      ],
      "how": [
        "1. POST https://agtmart.io/api/checkout {cart_id, payment:{method:\"usdc\", network:\"base\"}} -> 202 payment_request (amount in token units, sandbox pay_to, expires_at)",
        "2. POST https://agtmart.io/api/checkout/confirm {payment_id, tx_hash} -> 201 order"
      ],
      "magic_tx_hashes": {
        "success": "any well-formed hash for the network, e.g. 0x + 64 hex chars on EVM",
        "...dead": "hash ending in 'dead' simulates a reverted transaction -> 402 tx_reverted",
        "...beef": "hash ending in 'beef' simulates an underpayment -> 402 amount_mismatch"
      }
    },
    {
      "method": "usdt",
      "label": "USDT stablecoin (simulated)",
      "token": "USDT",
      "decimals": 6,
      "networks": [
        {
          "network": "ethereum",
          "label": "Ethereum",
          "caip2": "eip155:1",
          "tx_hash_format": "0x followed by 64 hex chars"
        },
        {
          "network": "tron",
          "label": "Tron",
          "caip2": null,
          "tx_hash_format": "64 hex chars, no 0x prefix"
        },
        {
          "network": "solana",
          "label": "Solana",
          "caip2": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
          "tx_hash_format": "base58 transaction signature, 86-88 chars"
        }
      ],
      "how": [
        "1. POST https://agtmart.io/api/checkout {cart_id, payment:{method:\"usdt\", network:\"ethereum\"}} -> 202 payment_request (amount in token units, sandbox pay_to, expires_at)",
        "2. POST https://agtmart.io/api/checkout/confirm {payment_id, tx_hash} -> 201 order"
      ],
      "magic_tx_hashes": {
        "success": "any well-formed hash for the network, e.g. 0x + 64 hex chars on EVM",
        "...dead": "hash ending in 'dead' simulates a reverted transaction -> 402 tx_reverted",
        "...beef": "hash ending in 'beef' simulates an underpayment -> 402 amount_mismatch"
      }
    },
    {
      "method": "x402",
      "label": "x402 v2 (HTTP 402 Payment Required), USDC on Base Sepolia testnet, simulated",
      "how": [
        "1. POST https://agtmart.io/api/checkout/x402 {cart_id} -> 402 with PAYMENT-REQUIRED header (base64 PaymentRequired)",
        "2. Retry the same request with a PAYMENT-SIGNATURE header (base64 PaymentPayload, scheme exact) -> 200 with PAYMENT-RESPONSE header and the order"
      ],
      "network": "eip155:84532",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "payTo": "0x0000000000000000000000000000000000000000",
      "magic": "payload.signature ending in 'dead' simulates insufficient_funds",
      "spec": "https://github.com/coinbase/x402/blob/main/specs/transports-v2/http.md"
    }
  ]
}