Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Complete online shopping purchases on any online store using the Credpay Checkout API with x402 payments. Trigger when a user wants to buy, order, or checkou...
Complete online shopping purchases on any online store using the Credpay Checkout API with x402 payments. Trigger when a user wants to buy, order, or checkou...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
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. Summarize what changed and any follow-up checks I should run.
API Base URL: https://checkout-agent.credpay.xyz Trigger this skill whenever the user wants to purchase, order, or checkout a product from any online store.
Collect these before starting (ask if missing): FieldExampleProduct URLhttps://example.com/products/teeQuantity1Size / Color (if applicable)"Size": "M", "Color": "Black"Emailcustomer@example.comGoods total (USD)"49.99" โ item price as a USD string, no currency symbolShipping addressfirstName, lastName, line1, city, state, postalCode, country, phone
POST https://checkout-agent.credpay.xyz/v1/quote Content-Type: application/json { "items": [ { "url": "<product URL>", "quantity": 1, "options": { "Size": "M", "Color": "Black" } } ], "email": "<email>", "shippingAddress": { "firstName": "Jane", "lastName": "Doe", "line1": "123 Main St", "city": "Austin", "state": "TX", "postalCode": "78701", "country": "United States", "countryCode": "US", "phone": "+15125551234" }, "goodsTotal": "<item price in USD as string, e.g. \"49.99\">" } โ Save maxAmount from the response. This is the USDC amount you will pay via x402.
POST https://checkout-agent.credpay.xyz/v1/checkout Content-Type: application/json X-PAYMENT: <x402 payment payload for maxAmount on Base chainId 8453> <same body as Step 1> โ On 202: save requestId and go to Step 3. โ On 402: re-read the payment requirements from the response and retry with a correct X-PAYMENT header.
GET https://checkout-agent.credpay.xyz/v1/checkout/{requestId} Poll every 5 seconds. Stop when status is completed or failed. Timeout after 10 minutes. StatusActionprocessingKeep pollingauthorization_requiredSee Step 4completedDone โ return result to userfailedReport errorCode + errorMessage to user
If status is authorization_required, the order total exceeded the quoted amount: POST https://checkout-agent.credpay.xyz/v1/checkout/{requestId}/authorize X-PAYMENT: <x402 payment for extraOwed amount> Then resume polling from Step 3.
Works with any online store โ just pass the product page URL. Never create a second checkout for the same intent while a requestId is active. Retry transient network errors with exponential backoff. Never blind-retry failed status. Default chainId is 8453 (Base).
{ "requestId": "req_abc123", "status": "completed", "success": true, "orderNumber": "1234" }
{ "requestId": "req_abc123", "status": "failed", "success": false, "errorCode": "payment_failed", "errorMessage": "Card declined" }
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.