metr-merchant-payments
Claim and withdraw payments from Metr (metrpay.com) merchant account.
Install / Use
npx skills add BankrBot/skills --skill metr-merchant-paymentsInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Finance & AccountingSupported Platforms
Our assessment of metr-merchant-payments
metr-merchant-payments scores 86/100 on our quality scale, 58th of 101 Finance & Accounting skills we index.
Its SKILL.md is 5.7 KB long, well organised into 14 sections with 9 code examples: a solid amount of guidance for an agent.
With 1,201 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so metr-merchant-payments is actively maintained.
- Our last check on 2026-11-03 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-10-06. Automated pattern scan on 2026-10-05. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
metr-merchant-payments compared with similar skills
All 4 of these similar skills score higher than metr-merchant-payments; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| metr-merchant-payments (this skill)by BankrBot | 86 | 1.2k | 54d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 112.3k | 8d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.8k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 103.6k | 2d ago | MCP Server |
| crawl4aiby unclecode | 100 | 87.4k | 3d ago | MCP Server |
Frequently asked questions
- How do I install metr-merchant-payments?
- Run
npx skills add BankrBot/skills --skill metr-merchant-payments. The install tabs above show the steps for each supported agent. - Which AI agents does metr-merchant-payments work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is metr-merchant-payments safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is metr-merchant-payments still maintained?
- The repository was last updated about 2 months ago, so metr-merchant-payments is actively maintained.
Skill content
View source on GitHubname: metr-merchant-payments description: Claim and withdraw payments from Metr (metrpay.com) merchant account. tags: [payments, merchant, metr, withdraw, claim]
Metr Merchant Payments
Manage your Metr merchant account — start payment sessions, end (settle) them, and withdraw funds to your wallet.
What is Metr?
Metr is a multi-chain payment protocol that lets merchants accept crypto (USDC, SOL, POL, ETH, and custom SPL/ERC-20 tokens) via session-based checkout. Funds are held in escrow during a session and released when the session ends.
- Website: https://metrpay.com
- API Base:
https://api.metr.app/v1
Prerequisites
- A Metr merchant account (sign up at https://metrpay.com)
- Your Merchant API Key — found in your Metr dashboard under Settings → API Keys
- (Optional) An Agent Key if you want to run agentic checkout sessions
Authentication
All API calls require headers:
| Header | Value | When |
|--------|-------|------|
| x-api-key | Your merchant API key | All merchant endpoints |
| x-agent-key | Your agent key | Agent session endpoints |
Store your key securely in Bankr:
- Open the Bankr terminal sidebar → click Advanced → click Env Vars
- Add
METR_MERCHANT_API_KEY= your merchant key - Add
METR_AGENT_KEY= your agent key (if using agent sessions)
Core Operations
1. Start a Payment Session
Initiate a checkout session for a customer.
Endpoint: POST /v1/integrate/sessions/start
Headers:
Content-Type: application/jsonx-api-key: <your-merchant-key>
Body:
{
"amount": "10.00",
"currency": "USDC",
"chain": "base",
"metadata": {
"orderId": "order_12345",
"customerEmail": "customer@example.com"
}
}
Response:
{
"sessionId": "sess_abc123",
"paymentUrl": "https://pay.metr.app/sess_abc123",
"status": "pending",
"expiresAt": "2026-07-01T12:00:00Z"
}
Bankr CLI equivalent:
curl -X POST https://api.metr.app/v1/integrate/sessions/start \
-H "Content-Type: application/json" \
-H "x-api-key: $METR_MERCHANT_API_KEY" \
-d '{
"amount": "10.00",
"currency": "USDC",
"chain": "base",
"metadata": {"orderId": "order_12345"}
}'
2. End (Settle) a Session
Release escrowed funds to the merchant wallet once the order is fulfilled.
Endpoint: POST /v1/integrate/sessions/{sessionId}/end
Headers:
Content-Type: application/jsonx-api-key: <your-merchant-key>
Body:
{
"reason": "fulfillment_complete",
"metadata": {
"deliveredAt": "2026-07-01T10:30:00Z"
}
}
Response:
{
"sessionId": "sess_abc123",
"status": "settled",
"settledAt": "2026-07-01T10:30:05Z",
"txHash": "0x..."
}
Bankr CLI equivalent:
curl -X POST "https://api.metr.app/v1/integrate/sessions/$SESSION_ID/end" \
-H "Content-Type: application/json" \
-H "x-api-key: $METR_MERCHANT_API_KEY" \
-d '{"reason": "fulfillment_complete"}'
3. Start an Agent Session
For AI-agent-initiated payments (e.g., an agent buying a service on behalf of a user).
Endpoint: POST /v1/agents/sessions/start
Headers:
Content-Type: application/jsonx-api-key: <your-merchant-key>x-agent-key: <your-agent-key>
Body:
{
"amount": "5.00",
"currency": "USDC",
"chain": "solana",
"agentId": "agent_001",
"metadata": {
"service": "api_call",
"tier": "premium"
}
}
4. End an Agent Session
Endpoint: POST /v1/agents/sessions/{sessionId}/end
Headers:
Content-Type: application/jsonx-api-key: <your-merchant-key>x-agent-key: <your-agent-key>
Body:
{
"reason": "service_delivered",
"metadata": {}
}
Claim & Withdraw Funds
Metr does not expose a direct "claim" API endpoint. Instead:
-
Settlement = Claim: Ending a session automatically releases the escrowed funds to your configured merchant wallet. The
txHashin the end-session response is your on-chain proof. -
Withdraw from Dashboard: For bulk withdrawals or moving funds to a different wallet:
- Log in to https://metrpay.com/dashboard
- Go to Balances
- Select the chain/token you want to withdraw
- Enter your destination wallet address
- Confirm the withdrawal (on-chain tx will be sent)
-
Webhook Notifications: Set up a webhook in your Metr dashboard to receive real-time events:
session.settled— funds released to merchant walletwithdrawal.completed— manual withdrawal finished
Supported Chains & Tokens
| Chain | Native Token | Stablecoins | Custom Tokens | |-------|-------------|-------------|---------------| | Solana | SOL | USDC | SPL tokens | | Polygon | POL | USDC | ERC-20 tokens | | Base | ETH | USDC | ERC-20 tokens |
Error Handling
Common HTTP status codes from Metr API:
| Code | Meaning | Action |
|------|---------|--------|
| 400 | Bad Request | Check request body schema |
| 401 | Unauthorized | Verify x-api-key is correct |
| 403 | Forbidden | Key lacks permission for this action |
| 404 | Session Not Found | Double-check sessionId |
| 409 | Session Already Ended | Idempotency — session is already settled |
| 422 | Validation Error | Amount too small, unsupported chain, etc. |
| 500 | Internal Error | Retry or contact Metr support |
Full Workflow Example
1. Customer places order on your site
2. You call POST /v1/integrate/sessions/start
3. You redirect customer to paymentUrl
4. Customer pays via Metr checkout
5. You fulfill the order (ship product, run service, etc.)
6. You call POST /v1/integrate/sessions/{id}/end
7. Funds are released to your merchant wallet
8. (Optional) You withdraw from dashboard to cold storage
References
- Metr Website: https://metrpay.com
- API Base: https://api.metr.app/v1
- Dashboard: https://metrpay.com/dashboard
Related Skills
Agent-Reach
112.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
79.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Scrapling
103.6k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
crawl4ai
87.4kOfficial Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
