{
  "schemaVersion": "1.0",
  "item": {
    "slug": "paytrigo-openclawbot",
    "name": "PayTrigo (OpenClawBot, Base/USDC)",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/paytrigo/paytrigo-openclawbot",
    "canonicalUrl": "https://clawhub.ai/paytrigo/paytrigo-openclawbot",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/paytrigo-openclawbot",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=paytrigo-openclawbot",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "package.json",
      "SKILL.md",
      "scripts/moltbot-wallet-setup.mjs",
      "scripts/moltbot-bot-flow.mjs",
      "scripts/moltbot-human-flow.mjs"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/paytrigo-openclawbot"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/paytrigo-openclawbot",
    "agentPageUrl": "https://openagent3.xyz/skills/paytrigo-openclawbot/agent",
    "manifestUrl": "https://openagent3.xyz/skills/paytrigo-openclawbot/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/paytrigo-openclawbot/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "PayTrigo (OpenClawBot, Base/USDC)",
        "body": "This skill provides a minimal, bot-friendly payment flow on PayTrigo using a platform API key and Base/USDC only. It is optimized for OpenClawBots that do not run webhooks and instead poll for status. A platform key is embedded in the helper script for no-setup usage."
      },
      {
        "title": "Assumptions",
        "body": "Platform key is used (recipientAddress required).\nBase/USDC is the only enabled chain/token for this key (from Platform Fee Configs).\nBots can store invoiceId and checkoutToken returned from invoice creation."
      },
      {
        "title": "No environment variables required",
        "body": "The helper script ships with an embedded key, so OpenClawBots can use it immediately."
      },
      {
        "title": "Install",
        "body": "Requires Node.js 18+.\n\nnpm install"
      },
      {
        "title": "Local wallet memory (recommended)",
        "body": "OpenClawBots can store a recipient address and an encrypted payer wallet locally (no external services needed)."
      },
      {
        "title": "1) Create a local wallet store",
        "body": "node {baseDir}/scripts/moltbot-wallet-setup.mjs create --passphrase-file ./passphrase.txt --set-recipient-from-wallet\n\nThis creates .openclawbot/wallet.json, .openclawbot/wallet-address.txt, and .openclawbot/recipient.txt."
      },
      {
        "title": "If you already have a wallet",
        "body": "You do not need to create a new one.\n\nnode {baseDir}/scripts/moltbot-wallet-setup.mjs recipient --address 0xYourWallet\nnode {baseDir}/scripts/moltbot-wallet-setup.mjs import --pk-file ./payer.pk --passphrase-file ./passphrase.txt --set-recipient-from-wallet"
      },
      {
        "title": "2) Run flows using the stored data",
        "body": "node {baseDir}/scripts/moltbot-human-flow.mjs human --amount 0.001\nnode {baseDir}/scripts/moltbot-bot-flow.mjs bot --amount 0.001 --passphrase-file ./passphrase.txt"
      },
      {
        "title": "3) Optional: set a separate recipient address",
        "body": "node {baseDir}/scripts/moltbot-wallet-setup.mjs recipient --address 0xYourWallet"
      },
      {
        "title": "Quickstart (CLI scripts)",
        "body": "Use the scenario scripts to test end-to-end flows without additional setup."
      },
      {
        "title": "Human-in-the-loop (user pays in browser)",
        "body": "node {baseDir}/scripts/moltbot-human-flow.mjs human --amount 0.001 --recipient 0xYourWallet..."
      },
      {
        "title": "Bot pays directly (requires private key)",
        "body": "node {baseDir}/scripts/moltbot-bot-flow.mjs bot --amount 0.001 --recipient 0xYourWallet... --pk 0xPRIVATE_KEY\n\nSee README.md in this folder for a short OpenClawBot-focused guide."
      },
      {
        "title": "Core flow (Human-in-the-loop)",
        "body": "Create invoice (platform key, Base/USDC, recipientAddress required)\nSend payUrl to the user (approval + payment)\nPoll invoice status until confirmed | expired | invalid | refunded"
      },
      {
        "title": "Core flow (Bot pays directly)",
        "body": "Create invoice\nGet intent (approve/pay calldata)\nSend on-chain tx (approve if needed, then pay)\nSubmit txHash\nPoll status\n\nImportant: Direct token transfer is invalid. Always use the Router steps.pay from /intent."
      },
      {
        "title": "1) Create invoice",
        "body": "Endpoint: POST /v1/invoices\n\nHeaders:\n\nAuthorization: Bearer <platform_key> (required if calling HTTP directly)\nContent-Type: application/json\nIdempotency-Key: pay_attempt_<uuid>\n\nBody (Base/USDC fixed, recipientAddress required)\n\n{\n  \"amount\": \"49.99\",\n  \"recipientAddress\": \"0xYourWallet...\",\n  \"ttlSeconds\": 900,\n  \"metadata\": { \"botId\": \"openclawbot_123\", \"purpose\": \"checkout\" }\n}\n\nResponse includes invoiceId, payUrl, checkoutToken, expiresAt."
      },
      {
        "title": "2) Get intent (bot-pay)",
        "body": "Endpoint: GET /v1/invoices/{invoiceId}/intent?chain=base&token=usdc\n\nHeaders (preferred):\n\nX-Checkout-Token: <checkoutToken>\n\nResponse includes steps.approve, steps.pay, routerAddress, grossAmountAtomic."
      },
      {
        "title": "3) Submit payment intent (txHash)",
        "body": "Endpoint: POST /v1/invoices/{invoiceId}/payment-intents\n\nHeaders:\n\nX-Checkout-Token: <checkoutToken>\nContent-Type: application/json\n\nBody\n\n{ \"txHash\": \"0x...\", \"payerAddress\": \"0x...\" }"
      },
      {
        "title": "4) Poll invoice status",
        "body": "Endpoint: GET /v1/invoices/{invoiceId}\n\nHeaders:\n\nX-Checkout-Token: <checkoutToken>\n\nStop when: status is confirmed | expired | invalid | refunded."
      },
      {
        "title": "Polling policy (safe default)",
        "body": "submitted right after tx: poll every 3-5s for 2 minutes\nAfter 2 minutes: poll every 10-15s\nStop at expiresAt + grace (status will not change after that)\nIf you receive 429, backoff and retry later"
      },
      {
        "title": "Common mistakes",
        "body": "Missing recipientAddress with platform key (invalid)\nDirect token transfer instead of Router pay\nLosing checkoutToken (it is only returned on invoice creation)"
      }
    ],
    "body": "PayTrigo (OpenClawBot, Base/USDC)\n\nThis skill provides a minimal, bot-friendly payment flow on PayTrigo using a platform API key and Base/USDC only. It is optimized for OpenClawBots that do not run webhooks and instead poll for status. A platform key is embedded in the helper script for no-setup usage.\n\nAssumptions\nPlatform key is used (recipientAddress required).\nBase/USDC is the only enabled chain/token for this key (from Platform Fee Configs).\nBots can store invoiceId and checkoutToken returned from invoice creation.\nNo environment variables required\n\nThe helper script ships with an embedded key, so OpenClawBots can use it immediately.\n\nInstall\n\nRequires Node.js 18+.\n\nnpm install\n\nLocal wallet memory (recommended)\n\nOpenClawBots can store a recipient address and an encrypted payer wallet locally (no external services needed).\n\n1) Create a local wallet store\nnode {baseDir}/scripts/moltbot-wallet-setup.mjs create --passphrase-file ./passphrase.txt --set-recipient-from-wallet\n\n\nThis creates .openclawbot/wallet.json, .openclawbot/wallet-address.txt, and .openclawbot/recipient.txt.\n\nIf you already have a wallet\n\nYou do not need to create a new one.\n\nnode {baseDir}/scripts/moltbot-wallet-setup.mjs recipient --address 0xYourWallet\nnode {baseDir}/scripts/moltbot-wallet-setup.mjs import --pk-file ./payer.pk --passphrase-file ./passphrase.txt --set-recipient-from-wallet\n\n2) Run flows using the stored data\nnode {baseDir}/scripts/moltbot-human-flow.mjs human --amount 0.001\nnode {baseDir}/scripts/moltbot-bot-flow.mjs bot --amount 0.001 --passphrase-file ./passphrase.txt\n\n3) Optional: set a separate recipient address\nnode {baseDir}/scripts/moltbot-wallet-setup.mjs recipient --address 0xYourWallet\n\nQuickstart (CLI scripts)\n\nUse the scenario scripts to test end-to-end flows without additional setup.\n\nHuman-in-the-loop (user pays in browser)\nnode {baseDir}/scripts/moltbot-human-flow.mjs human --amount 0.001 --recipient 0xYourWallet...\n\nBot pays directly (requires private key)\nnode {baseDir}/scripts/moltbot-bot-flow.mjs bot --amount 0.001 --recipient 0xYourWallet... --pk 0xPRIVATE_KEY\n\n\nSee README.md in this folder for a short OpenClawBot-focused guide.\n\nCore flow (Human-in-the-loop)\nCreate invoice (platform key, Base/USDC, recipientAddress required)\nSend payUrl to the user (approval + payment)\nPoll invoice status until confirmed | expired | invalid | refunded\nCore flow (Bot pays directly)\nCreate invoice\nGet intent (approve/pay calldata)\nSend on-chain tx (approve if needed, then pay)\nSubmit txHash\nPoll status\n\nImportant: Direct token transfer is invalid. Always use the Router steps.pay from /intent.\n\nAPI Usage (HTTP)\n1) Create invoice\n\nEndpoint: POST /v1/invoices\n\nHeaders:\n\nAuthorization: Bearer <platform_key> (required if calling HTTP directly)\nContent-Type: application/json\nIdempotency-Key: pay_attempt_<uuid>\n\nBody (Base/USDC fixed, recipientAddress required)\n\n{\n  \"amount\": \"49.99\",\n  \"recipientAddress\": \"0xYourWallet...\",\n  \"ttlSeconds\": 900,\n  \"metadata\": { \"botId\": \"openclawbot_123\", \"purpose\": \"checkout\" }\n}\n\n\nResponse includes invoiceId, payUrl, checkoutToken, expiresAt.\n\n2) Get intent (bot-pay)\n\nEndpoint: GET /v1/invoices/{invoiceId}/intent?chain=base&token=usdc\n\nHeaders (preferred):\n\nX-Checkout-Token: <checkoutToken>\n\nResponse includes steps.approve, steps.pay, routerAddress, grossAmountAtomic.\n\n3) Submit payment intent (txHash)\n\nEndpoint: POST /v1/invoices/{invoiceId}/payment-intents\n\nHeaders:\n\nX-Checkout-Token: <checkoutToken>\nContent-Type: application/json\n\nBody\n\n{ \"txHash\": \"0x...\", \"payerAddress\": \"0x...\" }\n\n4) Poll invoice status\n\nEndpoint: GET /v1/invoices/{invoiceId}\n\nHeaders:\n\nX-Checkout-Token: <checkoutToken>\n\nStop when: status is confirmed | expired | invalid | refunded.\n\nPolling policy (safe default)\nsubmitted right after tx: poll every 3-5s for 2 minutes\nAfter 2 minutes: poll every 10-15s\nStop at expiresAt + grace (status will not change after that)\nIf you receive 429, backoff and retry later\nCommon mistakes\nMissing recipientAddress with platform key (invalid)\nDirect token transfer instead of Router pay\nLosing checkoutToken (it is only returned on invoice creation)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/paytrigo/paytrigo-openclawbot",
    "publisherUrl": "https://clawhub.ai/paytrigo/paytrigo-openclawbot",
    "owner": "paytrigo",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/paytrigo-openclawbot",
    "downloadUrl": "https://openagent3.xyz/downloads/paytrigo-openclawbot",
    "agentUrl": "https://openagent3.xyz/skills/paytrigo-openclawbot/agent",
    "manifestUrl": "https://openagent3.xyz/skills/paytrigo-openclawbot/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/paytrigo-openclawbot/agent.md"
  }
}