← 返回 Skills 市场
pandagg110

Agent ToMerchant

作者 pandagg110 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
199
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-to-merchant
功能描述
SynapseAI Merchant — AI agent payment receiving layer. Register as merchant, create wallets, generate payment links & QR codes, receive on-chain payments, an...
使用说明 (SKILL.md)

SynapseAI Merchant

Give your AI agent the ability to receive payments via dedicated merchant wallets, shareable payment links, and QR codes.

Authentication

All requests use Bearer token (same token from wallet registration):

Authorization: Bearer \x3Cregistration_token>

URLs

Service URL
Merchant API https://wallet.synapseai.pro/api/merchant
Agent Toggle https://wallet.synapseai.pro/api/agent/{agentId}/toggle

Flow

1. Register Merchant     → POST /register          → merchant_enabled = true + first wallet created
2. Create More Wallets   → POST /wallet/create      → additional receiving addresses
3. Create Payment Link   → POST /payment/link       → shareable payment URL
4. Share Link / QR       → Customer pays via /pay/{id} page
5. Receive Webhook       → POST /webhook            → get notified on payment.success
6. Query Payments        → GET  /wallets            → check incoming payments
7. Disable/Enable        → POST /agent/{id}/toggle  → pause or resume receiving

Commands

Register as merchant (Bearer token) — One-time

Enable merchant capability for the agent. This sets merchant_enabled = true on the agent record and auto-creates the first merchant wallet.

This is a one-time action. Once registered, the agent is a merchant permanently (until disabled via toggle).

POST {MERCHANT_URL}/register
Authorization: Bearer \x3Cregistration_token>
{
  "agent_id": "agt_abc123",
  "label": "My SaaS API Store",
  "network": "TRON",
  "currency": "USDT"
}

Response:

{
  "merchant_enabled": true,
  "wallet": {
    "id": "mw_7f8a9b0c1d2e",
    "address": "T1A2B3C4D5E6F7G8H9I0J1K2L3M4N5O6P7",
    "network": "TRON",
    "label": "My SaaS API Store",
    "currency": "USDT"
  }
}

If already registered, returns 409 Conflict.

Toggle merchant receiving (Bearer token)

Pause or resume merchant receiving capability. When disabled:

  • Payment pages return 403 "Merchant is not accepting payments"
  • Webhooks stop firing
  • Existing data (wallets, links, history) is preserved
POST {AGENT_TOGGLE_URL}/{agentId}/toggle
Authorization: Bearer \x3Cregistration_token>
{
  "merchant_enabled": false
}

Response: updated agent object with merchant_enabled field.

Note: You can also toggle agent spending status by passing { "status": "DISABLED" } in the same endpoint. Both fields can be toggled independently.

Create merchant wallet (Bearer token)

Each merchant wallet is an independent receiving address. One agent can have multiple merchant wallets for different purposes (e.g. one per product, one per client).

POST {MERCHANT_URL}/wallet/create
Authorization: Bearer \x3Cregistration_token>
{
  "agent_id": "agt_abc123",
  "label": "My SaaS API Store",
  "network": "TRON",
  "currency": "USDT"
}

Response:

{
  "wallet_id": "mw_7f8a9b0c1d2e",
  "address": "T1A2B3C4D5E6F7G8H9I0J1K2L3M4N5O6P7",
  "network": "TRON",
  "label": "My SaaS API Store"
}

Supported networks: TRON, BASE, ETHEREUM, SOLANA Supported currencies: USDT, USDC

Create payment link (Bearer token)

Generate a shareable payment URL that customers can visit to pay. Each link has a unique URL at https://wallet.synapseai.pro/pay/{id}.

POST {MERCHANT_URL}/payment/link
Authorization: Bearer \x3Cregistration_token>
{
  "merchant_wallet_id": "mw_7f8a9b0c1d2e",
  "agent_id": "agt_abc123",
  "amount": 10.0,
  "currency": "USDT",
  "description": "Premium API Access - 30 days"
}

Response:

{
  "id": "pl_3e4f5a6b7c8d",
  "payment_url": "https://wallet.synapseai.pro/pay/pl_3e4f5a6b7c8d",
  "qr_code_url": null,
  "amount": 10.0,
  "currency": "USDT"
}

Share the payment_url with your customer. They will see a branded payment page with QR code and wallet address.

Configure webhook (Bearer token)

Receive HTTP notifications when payments are confirmed.

POST {MERCHANT_URL}/webhook
Authorization: Bearer \x3Cregistration_token>
{
  "agent_id": "agt_abc123",
  "url": "https://your-api.com/payment-callback",
  "events": ["payment.success"]
}

Response:

{
  "id": "wh_9a0b1c2d3e4f",
  "url": "https://your-api.com/payment-callback",
  "events": ["payment.success"],
  "secret": "whsec_a1b2c3d4e5f6g7h8i9j0...",
  "active": true
}

Available events: payment.success, payment.failed, payment.pending

Keep the secret safe — use it to verify webhook signatures.

Query merchant data (Bearer token)

Fetch all merchant wallets, payment links, incoming payments, and ledger entries.

GET {MERCHANT_URL}/wallets?agent_id=agt_abc123
Authorization: Bearer \x3Cregistration_token>
{
  "merchantWallets": [...],
  "paymentLinks": [...],
  "payments": [...],
  "ledger": [...],
  "webhooks": [...]
}

Get payment link info (public, no auth)

Fetch public info about a payment link. Used by the payment page.

Returns 403 if the owning agent has merchant_enabled = false.

GET {MERCHANT_URL}/payment/{payId}
{
  "id": "pl_3e4f5a6b7c8d",
  "amount": 10.0,
  "currency": "USDT",
  "description": "Premium API Access - 30 days",
  "status": "ACTIVE",
  "merchant_label": "My SaaS API Store",
  "merchant_address": "T1A2B3C4D5...",
  "network": "TRON"
}

Webhook payload

When a payment is confirmed, your webhook URL receives:

{
  "event": "payment.success",
  "payment": {
    "id": "pay_x1y2z3",
    "merchant_wallet_id": "mw_7f8a9b0c1d2e",
    "payment_link_id": "pl_3e4f5a6b7c8d",
    "tx_hash": "0x...",
    "amount": 10.0,
    "currency": "USDT",
    "payer": "0x...",
    "status": "CONFIRMED",
    "confirmations": 6,
    "created_at": "2026-03-15T..."
  }
}

Typical agent flow

1. Register as merchant  → POST /register
2. Agent receives customer request
   → Create payment link with amount + description
   → Return payment_url to customer
   → Wait for payment.success webhook
   → Deliver product/service to customer
3. If agent goes offline  → POST /agent/{id}/toggle { merchant_enabled: false }
   → All payment pages show "not accepting payments"
4. When agent returns     → POST /agent/{id}/toggle { merchant_enabled: true }

Error handling

All errors return {"error": "..."} with appropriate HTTP status:

Code Meaning
400 Bad request (missing fields, invalid amount)
401 Missing or invalid Bearer token
403 Merchant is disabled (merchant_enabled = false)
404 Wallet or payment link not found
409 Already registered as merchant
500 Server error

Architecture

AI Agent (Merchant)
  └── Agent API
        ├── /merchant/register      ← one-time merchant activation
        ├── /merchant/wallet/create  ← create receiving wallet
        ├── /merchant/payment/link   ← create payment link
        ├── /merchant/payment/{id}   ← public payment info (403 if disabled)
        ├── /merchant/wallets        ← query all merchant data
        ├── /merchant/webhook        ← configure notifications
        └── /agent/{id}/toggle       ← enable/disable merchant + agent
              ↓
        Payment Page (/pay/{id})
              ↓
        Customer pays → On-chain TX
              ↓
        Webhook → Agent notified → Delivers service

Database

Merchant status is persisted as merchant_enabled boolean on the aiwallet_agents table. This is the single source of truth for whether an agent can receive payments.

Notes

  • Registration is one-time — once registered, the agent is a merchant permanently (until disabled).
  • Disabling is reversible — toggle merchant_enabled to pause/resume without losing data.
  • Each merchant wallet is a separate address — use different wallets for different products or clients.
  • Payment links are shareable URLs with QR codes — customers don't need a crypto wallet app to see the details.
  • Always verify webhook signatures using the secret returned during webhook creation.
  • Payment links can expire — set expires_at if you want time-limited offers.
  • Use clear description strings — customers see these on the payment page.
  • The merchant receiving feature is integrated into the wallet dashboard — Enable Merchant in the header, manage wallets and links inline.
安全使用建议
This skill appears to be what it says: an instruction-only integration for a merchant/payment service. Before installing: 1) Verify the service domain (https://wallet.synapseai.pro) and operator reputation; 2) Only provide a registration/Bearer token with the least privilege necessary and confirm how your agent stores that token; 3) If you configure a webhook, verify the webhook secret handling and validate signatures on your endpoint to prevent spoofed events; 4) Ask the skill author to clarify the 'supabase' metadata requirement or supply explicit environment/credential guidance (there is a mismatch between metadata and declared requirements); 5) Test with a non-production agent and monitor network calls and webhook traffic to ensure no unexpected behavior. If you need higher assurance, request the service's API docs or contact the maintainer for details about token scope and data retention.
功能分析
Type: OpenClaw Skill Name: agent-to-merchant Version: 1.0.0 The skill bundle provides a functional API specification for an AI agent to act as a merchant using the SynapseAI payment gateway (wallet.synapseai.pro). It includes standard operations for crypto wallet management, payment link generation, and webhook configuration. No evidence of data exfiltration, malicious command execution, or prompt injection attacks was found; the instructions are consistent with the stated purpose of enabling payment processing.
能力评估
Purpose & Capability
The name/description describe a merchant/payment-receiving service and the SKILL.md contains only HTTP endpoints and flows (register merchant, create wallets/links, configure webhooks, toggle). The actions and endpoints requested by the skill align with that purpose.
Instruction Scope
The runtime instructions are limited to calling the service's HTTP API and configuring webhooks; they do not instruct the agent to read local files or unrelated environment variables. Note: the SKILL.md includes metadata indicating a dependency on 'supabase' in its metadata object, but the skill declares no required env/config — that mismatch deserves clarification.
Install Mechanism
Instruction-only skill with no install steps and no code files. Nothing is downloaded or written to disk by the skill itself.
Credentials
The skill does not declare required environment variables or credentials, which is reasonable because API calls use a Bearer registration token supplied at runtime. However, the skill will require a registration_token (Bearer token) to perform merchant actions; the token is not declared in requires.env. Ensure you only provide a token with minimal scope and understand where/how the token is stored or used by your agent.
Persistence & Privilege
The skill is not marked always:true and does not request system-wide persistence. It does not instruct changing other skills or global agent settings beyond toggling the merchant-enabled flag for the agent it manages.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-to-merchant
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-to-merchant 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of SynapseAI Merchant: on-chain payment receiving for AI agents. - Register agents as merchants to enable receiving payments. - Create dedicated merchant wallets and generate payment links/QR codes. - Accept on-chain payments (TRON, BASE, ETHEREUM, SOLANA; USDT, USDC). - Configure webhooks for payment status notifications. - Enable/pause merchant receiving with agent toggle endpoint. - Query wallet balances, payment history, and payment links.
元数据
Slug agent-to-merchant
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Agent ToMerchant 是什么?

SynapseAI Merchant — AI agent payment receiving layer. Register as merchant, create wallets, generate payment links & QR codes, receive on-chain payments, an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 199 次。

如何安装 Agent ToMerchant?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-to-merchant」即可一键安装,无需额外配置。

Agent ToMerchant 是免费的吗?

是的,Agent ToMerchant 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agent ToMerchant 支持哪些平台?

Agent ToMerchant 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent ToMerchant?

由 pandagg110(@pandagg110)开发并维护,当前版本 v1.0.0。

💬 留言讨论