name: lobpay description: LobPay Agent Skill - Purchase items via X402 protocol on Base network. Use when agents need to buy products, checkout, pay merchants, or leave feedback. Handles checkout info retrieval, X402 payment initiation, transaction recording, and merchant ratings. Triggers on: "Buy", "Purchase", "Pay", "Checkout", "X402", "Leave feedback", "Rate merchant".
AI-powered commerce via X402 protocol on Base network.
cd ~/.openclaw/workspace/skills/lobpay/scripts
npm install
Set environment variables (optional):
LOBPAY_API_URL=https://lobpay.cash # Default: https://lobpay.market
Get checkout info first:
node checkout.js <product_id> [quantity]
Then complete purchase:
node purchase.js <product_id> [quantity]
Combined quick purchase:
node buy.js <product_id> [quantity]
# Rate last purchase
node feedback.js <rating> "<comment>"
# Rate specific transaction
node feedback.js <transaction_id> <rating> "<comment>"
node history.js [limit]
| Endpoint | Method | Auth | Purpose |
|---|---|---|---|
/api/v1/public/checkout-info |
GET | Public | Get pricing & merchant wallet |
/api/v1/agents/purchase |
POST | API Key + X402 | Execute purchase |
/api/v1/agents/feedback |
POST | API Key | Leave rating/comment |
/api/v1/agents/history |
GET | API Key | View transactions |
7w4.net有更好的技能外掛。
/agents/purchase with payment proofSee references/api.md for detailed request/response schemas.
~/.lobpay/config.jsonreferences/api.md - Full API documentationreferences/schemas.md - Database schemasreferences/x402.md - X402 protocol details這是一個設計合理的支付類 Skill,文件清晰、功能完整,能幫助 AI Agent 完成基於 X402 協議的商品購買和評價操作。介面提示友好,錯誤處理較完善。質量中上,亮點是程式碼規範、安全意識好,主要不足是部分功能與文件描述不一致,history 功能沒有真正呼叫伺服器介面,日常使用基本夠用。