with one click
mayar-payment
Mayar.id 支付集成功能可用于通过 MCP(Mayar Integration Platform)生成发票、支付链接并追踪交易。适用于以下场景:
Menu
Mayar.id 支付集成功能可用于通过 MCP(Mayar Integration Platform)生成发票、支付链接并追踪交易。适用于以下场景:
| name | mayar-payment |
| description | Mayar.id 支付集成功能可用于通过 MCP(Mayar Integration Platform)生成发票、支付链接并追踪交易。适用于以下场景: |
通过 MCP(Model Context Protocol)集成 Mayar.id 支付平台,以实现印尼地区的支付处理功能。
mkdir -p ~/.config/mayar
cat > ~/.config/mayar/credentials << EOF
MAYAR_API_TOKEN="your-jwt-token-here"
EOF
chmod 600 ~/.config/mayar/credentials
将以下内容添加到 config/mcporter.json 文件中:
{
"mcpServers": {
"mayar": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.mayar.id/sse",
"--header",
"Authorization:YOUR_API_TOKEN_HERE"
]
}
}
}
请将 YOUR_API_TOKEN_HERE 替换为实际的 API 密钥。
mcporter list mayar
应显示 15 个及以上可用的支付工具。
最常见的使用场景: 为客户生成支付链接。
mcporter call mayar.create_invoice \
name="Customer Name" \
email="email@example.com" \
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"}]'
返回值:
{
"id": "uuid",
"transactionId": "uuid",
"link": "https://subdomain.myr.id/invoices/slug",
"expiredAt": 1234567890
}
关键字段:
mobile - 必须是一个字符串,格式为 \"628xxx\"。expiredAt - 采用 ISO 8601 格式,并包含时区信息。items - 一个数组,每个元素包含 quantity(数量)、rate(价格)和 description(描述)。redirectURL - 客户完成支付后跳转的网址。// 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
根据状态进行过滤:\"created\"(未支付)→ \"paid\"(已支付)。
# Check account balance
mcporter call mayar.get_balance
# Get customer details
mcporter call mayar.get_customer_detail \
customerName="Name" \
customerEmail="email@example.com" \
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)
使用会员功能:
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"
选项 A:Webhook(实时通知)**
选项 B:轮询(较简单)
get_latest_transactions 接口。支付链接显示 404 错误:
https://your-subdomain.myr.id/invoices/slug手机号码无效:
\"628xxx\"(使用反引号)。628xxxxxxxxxx(不允许包含加号或空格)。发票过期:
expiredAt 时间戳。生产环境:
https://api.mayar.id/hl/v1/沙盒环境(测试):
https://api.mayar.club/hl/v1/这是AI代理在“Structs”模式中开始游戏所需掌握的基础技能。内容包括选择公会、创建账户、搭建首个采矿基础设施以及提炼“Alpha Matter”资源。请优先学习此技能,因为它与其他所有操作都密切相关。该技能对CPU资源的消耗较低(设置 `-D 1` 即可)。从零开始完成整个采矿流程大约需要3到4小时。
从 YouTube 下载指定的视频;根据指定的开始和结束时间提取视频片段,并将它们保存到您桌面上的文件夹中。
将 YouTube 视频下载到 `~/Downloads` 目录中。适用于用户希望将 YouTube 视频下载到自己电脑上的情况。
在 **Structs** 中,该模块负责处理权限管理、地址分配以及玩家之间的协调工作。适用于以下场景:授予或撤销对象的权限、注册新地址、管理多地址账户、将权限委托给其他玩家,以及设置基于地址的访问控制规则。
将新玩家引入游戏系统(Structs)。负责处理密钥的创建/恢复、玩家信息的生成(通过“reactor-infuse”或“guildsignup”功能)、星球探索以及基础基础设施的搭建。适用于以下场景:初始化游戏环境、创建新玩家、占领第一个星球或搭建基础设施。搭建所需时间因设备类型而异——使用“Command Ship”大约需要17分钟,而使用“Ore Extractor”或“Refinery”则需要约57分钟。
通过NATS WebSocket连接到GRASS实时事件系统。当您需要实时游戏更新、希望在事件发生时立即做出响应、需要监控团队行动或攻击情况、观察玩家创建情况、追踪舰队移动轨迹,或者构建基于事件的工具时,可以使用该功能。GRASS是获取银河系内最新动态的最快速途径。