Integrate Mayar.id payments to create invoices, generate payment links, track Indonesian payment methods, manage subscriptions, and automate payment workflows.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install mayar-payment或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install mayar-payment⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/mayar-payment/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: mayar-payment description: Mayar.id payment integration for generating invoices, payment links, and tracking transactions via MCP. Use when needing to: (1) Create payment invoices/links for customers, (2) Track payment status and transactions, (3) Generate WhatsApp-friendly payment messages, (4) Handle Indonesian payment methods (bank transfer, e-wallet, QRIS), (5) Manage subscriptions/memberships, or (6) Automate payment workflows for e-commerce, services, or digital products. ---
Integrate Mayar.id payment platform via MCP (Model Context Protocol) for Indonesian payment processing.
mkdir -p ~/.config/mayar
cat > ~/.config/mayar/credentials << EOF
MAYAR_API_TOKEN="your-jwt-token-here"
EOF
chmod 600 ~/.config/mayar/credentials
Add to config/mcporter.json:
{
"mcpServers": {
"mayar": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.mayar.id/sse",
"--header",
"Authorization:YOUR_API_TOKEN_HERE"
]
}
}
}
Replace YOUR_API_TOKEN_HERE with actual token.
mcporter list mayar
Should show 15+ available tools.
Most common use case: Generate payment link for customer.
mcporter call mayar.create_invoice \
name="Customer Name" \
email="[email protected]" \
mobile="\"628xxx\"" \
description="Order description" \
redirectURL="https://yoursite.com/thanks" \
expiredAt="2026-12-31T23:59:59+07:00" \
items='[{"quantity":1,"rate":500000,"description":"Product A"}]'
Returns:
{
"id": "uuid",
"transactionId": "uuid",
"link": "https://subdomain.myr.id/invoices/slug",
"expiredAt": 1234567890
}
Key fields:
mobile - MUST be string with quotes: "\"628xxx\""expiredAt - ISO 8601 format with timezoneitems - Array of {quantity, rate, description}redirectURL - Where customer goes after payment// 1. Create invoice
const invoice = /* mcporter call mayar.create_invoice */;
// 2. Format message
const message = `
✅ *Order Confirmed!*
*Items:*
• Product Name
Rp ${amount.toLocaleString('id-ID')}
*TOTAL: Rp ${total.toLocaleString('id-ID')}*
💳 *Pembayaran:*
${invoice.data.link}
⏰ Berlaku sampai: ${expiryDate}
Terima kasih! 🙏
`.trim();
// 3. Send via WhatsApp
message({
action: 'send',
channel: 'whatsapp',
target: customerPhone,
message: message
});
# Get latest transactions (check if paid)
mcporter call mayar.get_latest_transactions page:1 pageSize:10
# Get unpaid invoices
mcporter call mayar.get_latest_unpaid_transactions page:1 pageSize:10
Filter by status: "created" (unpaid) → "paid" (success).
# Check account balance
mcporter call mayar.get_balance
# Get customer details
mcporter call mayar.get_customer_detail \
customerName="Name" \
customerEmail="[email protected]" \
page:1 pageSize:10
# Filter by time period
mcporter call mayar.get_transactions_by_time_period \
page:1 pageSize:10 \
period:"this_month" \
sortField:"createdAt" \
sortOrder:"DESC"
items='[
{"quantity":2,"rate":500000,"description":"Product A"},
{"quantity":1,"rate":1000000,"description":"Product B"}
]'
// Total: 2M (2×500K + 1×1M)
Use membership tools:
mcporter call mayar.get_membership_customer_by_specific_product \
productName:"Premium Membership" \
productLink:"your-product-link" \
productId:"product-uuid" \
page:1 pageSize:10 \
memberStatus:"active"
Option A: Webhook (Real-time)
Option B: Polling (Simpler)
get_latest_transactions every 30-60s404 on payment link:
https://your-subdomain.myr.id/invoices/slugInvalid mobile number:
"\"628xxx\"" (with escaped quotes)628xxxxxxxxxx (no + or spaces)Expired invoice:
expiredAt timestampProduction:
https://api.mayar.id/hl/v1/Sandbox (Testing):
https://api.mayar.club/hl/v1/安装 Mayar Payment Integration 后,可以对 AI 说这些话来触发它
Help me get started with Mayar Payment Integration
Explains what Mayar Payment Integration does, walks through the setup, and runs a quick demo based on your current project
Use Mayar Payment Integration to integrate Mayar
Invokes Mayar Payment Integration with the right parameters and returns the result directly in the conversation
What can I do with Mayar Payment Integration in my design & creative workflow?
Lists the top use cases for Mayar Payment Integration, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/mayar-payment/ 目录(个人级,所有项目可用),或 .claude/skills/mayar-payment/(项目级)。重启 AI 客户端后,用 /mayar-payment 主动调用,或让 AI 根据上下文自动发现并使用。
Mayar Payment Integration 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Mayar Payment Integration 可免费安装使用。请查阅仓库了解许可证信息。
Integrate Mayar.id payments to create invoices, generate payment links, track Indonesian payment methods, manage subscriptions, and automate payment workflows.
Mayar Payment Integration 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Mayar Payment Integration
Identifies repetitive steps in your workflow and sets up Mayar Payment Integration to handle them automatically