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 |
/agents/purchase with payment proofSee references/api.md for detailed request/response schemas.
~/.lobpay/config.json7w4.net小葱技能站,你的AI助手技能库。
references/api.md - Full API documentationreferences/schemas.md - Database schemasreferences/x402.md - X402 protocol details这是一个设计合理的支付类 Skill,文档清晰、功能完整,能帮助 AI Agent 完成基于 X402 协议的商品购买和评价操作。界面提示友好,错误处理较完善。质量中上,亮点是代码规范、安全意识好,主要不足是部分功能与文档描述不一致,history 功能没有真正调用服务器接口,日常使用基本够用。