# Send PayTrigo (OpenClawBot, Base/USDC) to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "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": {
    "downloadUrl": "/downloads/paytrigo-openclawbot",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=paytrigo-openclawbot",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "package.json",
      "SKILL.md",
      "scripts/moltbot-wallet-setup.mjs",
      "scripts/moltbot-bot-flow.mjs",
      "scripts/moltbot-human-flow.mjs"
    ],
    "downloadMode": "redirect",
    "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### PayTrigo (OpenClawBot, Base/USDC)

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.

### Assumptions

Platform key is used (recipientAddress required).
Base/USDC is the only enabled chain/token for this key (from Platform Fee Configs).
Bots can store invoiceId and checkoutToken returned from invoice creation.

### No environment variables required

The helper script ships with an embedded key, so OpenClawBots can use it immediately.

### Install

Requires Node.js 18+.

npm install

### Local wallet memory (recommended)

OpenClawBots can store a recipient address and an encrypted payer wallet locally (no external services needed).

### 1) Create a local wallet store

node {baseDir}/scripts/moltbot-wallet-setup.mjs create --passphrase-file ./passphrase.txt --set-recipient-from-wallet

This creates .openclawbot/wallet.json, .openclawbot/wallet-address.txt, and .openclawbot/recipient.txt.

### If you already have a wallet

You do not need to create a new one.

node {baseDir}/scripts/moltbot-wallet-setup.mjs recipient --address 0xYourWallet
node {baseDir}/scripts/moltbot-wallet-setup.mjs import --pk-file ./payer.pk --passphrase-file ./passphrase.txt --set-recipient-from-wallet

### 2) Run flows using the stored data

node {baseDir}/scripts/moltbot-human-flow.mjs human --amount 0.001
node {baseDir}/scripts/moltbot-bot-flow.mjs bot --amount 0.001 --passphrase-file ./passphrase.txt

### 3) Optional: set a separate recipient address

node {baseDir}/scripts/moltbot-wallet-setup.mjs recipient --address 0xYourWallet

### Quickstart (CLI scripts)

Use the scenario scripts to test end-to-end flows without additional setup.

### Human-in-the-loop (user pays in browser)

node {baseDir}/scripts/moltbot-human-flow.mjs human --amount 0.001 --recipient 0xYourWallet...

### Bot pays directly (requires private key)

node {baseDir}/scripts/moltbot-bot-flow.mjs bot --amount 0.001 --recipient 0xYourWallet... --pk 0xPRIVATE_KEY

See README.md in this folder for a short OpenClawBot-focused guide.

### Core flow (Human-in-the-loop)

Create invoice (platform key, Base/USDC, recipientAddress required)
Send payUrl to the user (approval + payment)
Poll invoice status until confirmed | expired | invalid | refunded

### Core flow (Bot pays directly)

Create invoice
Get intent (approve/pay calldata)
Send on-chain tx (approve if needed, then pay)
Submit txHash
Poll status

Important: Direct token transfer is invalid. Always use the Router steps.pay from /intent.

### 1) Create invoice

Endpoint: POST /v1/invoices

Headers:

Authorization: Bearer <platform_key> (required if calling HTTP directly)
Content-Type: application/json
Idempotency-Key: pay_attempt_<uuid>

Body (Base/USDC fixed, recipientAddress required)

{
  "amount": "49.99",
  "recipientAddress": "0xYourWallet...",
  "ttlSeconds": 900,
  "metadata": { "botId": "openclawbot_123", "purpose": "checkout" }
}

Response includes invoiceId, payUrl, checkoutToken, expiresAt.

### 2) Get intent (bot-pay)

Endpoint: GET /v1/invoices/{invoiceId}/intent?chain=base&token=usdc

Headers (preferred):

X-Checkout-Token: <checkoutToken>

Response includes steps.approve, steps.pay, routerAddress, grossAmountAtomic.

### 3) Submit payment intent (txHash)

Endpoint: POST /v1/invoices/{invoiceId}/payment-intents

Headers:

X-Checkout-Token: <checkoutToken>
Content-Type: application/json

Body

{ "txHash": "0x...", "payerAddress": "0x..." }

### 4) Poll invoice status

Endpoint: GET /v1/invoices/{invoiceId}

Headers:

X-Checkout-Token: <checkoutToken>

Stop when: status is confirmed | expired | invalid | refunded.

### Polling policy (safe default)

submitted right after tx: poll every 3-5s for 2 minutes
After 2 minutes: poll every 10-15s
Stop at expiresAt + grace (status will not change after that)
If you receive 429, backoff and retry later

### Common mistakes

Missing recipientAddress with platform key (invalid)
Direct token transfer instead of Router pay
Losing checkoutToken (it is only returned on invoice creation)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: paytrigo
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/paytrigo-openclawbot)
- [Send to Agent page](https://openagent3.xyz/skills/paytrigo-openclawbot/agent)
- [JSON manifest](https://openagent3.xyz/skills/paytrigo-openclawbot/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/paytrigo-openclawbot/agent.md)
- [Download page](https://openagent3.xyz/downloads/paytrigo-openclawbot)