AI-powered commerce via X402 protocol on Base network.
bash
cd ~/.openclaw/workspace/skills/lobpay/scripts
npm install
Set environment variables (optional):
bash
LOBPAY_API_URL=https://lobpay.cash # Default: https://lobpay.market
Get checkout info first:
bash
node checkout.js <product_id> [quantity]
Then complete purchase:
bash
node purchase.js <product_id> [quantity]
Combined quick purchase:
bash
node buy.js <product_id> [quantity]
bash
# Rate last purchase
node feedback.js <rating> "<comment>"
# Rate specific transaction
node feedback.js <transaction_id> <rating> "<comment>"
bash
node history.js [limit]
EndpointMethodAuthPurpose/api/v1/public/checkout-infoGETPublicGet pricing & merchant wallet/api/v1/agents/purchasePOSTAPI Key + X402Execute purchase/api/v1/agents/feedbackPOSTAPI KeyLeave rating/comment/api/v1/agents/historyGETAPI KeyView transactions
/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