{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mayar-payment",
    "name": "Mayar Payment Integration",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/ahsanatha/mayar-payment",
    "canonicalUrl": "https://clawhub.ai/ahsanatha/mayar-payment",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/mayar-payment",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mayar-payment",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/api-reference.md",
      "references/integration-examples.md",
      "references/mcp-tools.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mayar-payment"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/mayar-payment",
    "agentPageUrl": "https://openagent3.xyz/skills/mayar-payment/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mayar-payment/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mayar-payment/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Mayar Payment Integration",
        "body": "Integrate Mayar.id payment platform via MCP (Model Context Protocol) for Indonesian payment processing."
      },
      {
        "title": "Prerequisites",
        "body": "Mayar.id account - Sign up at https://mayar.id\nAPI Key - Generate from https://web.mayar.id/api-keys\nmcporter configured - MCP must be set up in Clawdbot"
      },
      {
        "title": "1. Store API Credentials",
        "body": "mkdir -p ~/.config/mayar\ncat > ~/.config/mayar/credentials << EOF\nMAYAR_API_TOKEN=\"your-jwt-token-here\"\nEOF\nchmod 600 ~/.config/mayar/credentials"
      },
      {
        "title": "2. Configure MCP Server",
        "body": "Add to config/mcporter.json:\n\n{\n  \"mcpServers\": {\n    \"mayar\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://mcp.mayar.id/sse\",\n        \"--header\",\n        \"Authorization:YOUR_API_TOKEN_HERE\"\n      ]\n    }\n  }\n}\n\nReplace YOUR_API_TOKEN_HERE with actual token."
      },
      {
        "title": "3. Test Connection",
        "body": "mcporter list mayar\n\nShould show 15+ available tools."
      },
      {
        "title": "Create Invoice with Payment Link",
        "body": "Most common use case: Generate payment link for customer.\n\nmcporter call mayar.create_invoice \\\n  name=\"Customer Name\" \\\n  email=\"email@example.com\" \\\n  mobile=\"\\\"628xxx\\\"\" \\\n  description=\"Order description\" \\\n  redirectURL=\"https://yoursite.com/thanks\" \\\n  expiredAt=\"2026-12-31T23:59:59+07:00\" \\\n  items='[{\"quantity\":1,\"rate\":500000,\"description\":\"Product A\"}]'\n\nReturns:\n\n{\n  \"id\": \"uuid\",\n  \"transactionId\": \"uuid\", \n  \"link\": \"https://subdomain.myr.id/invoices/slug\",\n  \"expiredAt\": 1234567890\n}\n\nKey fields:\n\nmobile - MUST be string with quotes: \"\\\"628xxx\\\"\"\nexpiredAt - ISO 8601 format with timezone\nitems - Array of {quantity, rate, description}\nredirectURL - Where customer goes after payment"
      },
      {
        "title": "WhatsApp Integration Pattern",
        "body": "// 1. Create invoice\nconst invoice = /* mcporter call mayar.create_invoice */;\n\n// 2. Format message\nconst message = `\n✅ *Order Confirmed!*\n\n*Items:*\n• Product Name\n  Rp ${amount.toLocaleString('id-ID')}\n\n*TOTAL: Rp ${total.toLocaleString('id-ID')}*\n\n💳 *Pembayaran:*\n${invoice.data.link}\n\n⏰ Berlaku sampai: ${expiryDate}\n\nTerima kasih! 🙏\n`.trim();\n\n// 3. Send via WhatsApp\nmessage({\n  action: 'send',\n  channel: 'whatsapp',\n  target: customerPhone,\n  message: message\n});"
      },
      {
        "title": "Check Payment Status",
        "body": "# Get latest transactions (check if paid)\nmcporter call mayar.get_latest_transactions page:1 pageSize:10\n\n# Get unpaid invoices\nmcporter call mayar.get_latest_unpaid_transactions page:1 pageSize:10\n\nFilter by status: \"created\" (unpaid) → \"paid\" (success)."
      },
      {
        "title": "Other Operations",
        "body": "# Check account balance\nmcporter call mayar.get_balance\n\n# Get customer details\nmcporter call mayar.get_customer_detail \\\n  customerName=\"Name\" \\\n  customerEmail=\"email@example.com\" \\\n  page:1 pageSize:10\n\n# Filter by time period\nmcporter call mayar.get_transactions_by_time_period \\\n  page:1 pageSize:10 \\\n  period:\"this_month\" \\\n  sortField:\"createdAt\" \\\n  sortOrder:\"DESC\""
      },
      {
        "title": "Multi-Item Invoice",
        "body": "items='[\n  {\"quantity\":2,\"rate\":500000,\"description\":\"Product A\"},\n  {\"quantity\":1,\"rate\":1000000,\"description\":\"Product B\"}\n]'\n// Total: 2M (2×500K + 1×1M)"
      },
      {
        "title": "Subscription/Recurring",
        "body": "Use membership tools:\n\nmcporter call mayar.get_membership_customer_by_specific_product \\\n  productName:\"Premium Membership\" \\\n  productLink:\"your-product-link\" \\\n  productId:\"product-uuid\" \\\n  page:1 pageSize:10 \\\n  memberStatus:\"active\""
      },
      {
        "title": "Payment Confirmation Flow",
        "body": "Option A: Webhook (Real-time)\n\nRegister webhook URL with Mayar\nReceive instant payment notifications\nBest for production\n\nOption B: Polling (Simpler)\n\nPoll get_latest_transactions every 30-60s\nCheck for new payments\nBest for MVP/testing"
      },
      {
        "title": "Troubleshooting",
        "body": "404 on payment link:\n\nLink format: https://your-subdomain.myr.id/invoices/slug\nCheck dashboard for correct subdomain\nDefault may be account name\n\nInvalid mobile number:\n\nMobile MUST be string: \"\\\"628xxx\\\"\" (with escaped quotes)\nFormat: 628xxxxxxxxxx (no + or spaces)\n\nExpired invoice:\n\nDefault expiry is expiredAt timestamp\nCustomer can't pay after expiration\nCreate new invoice if needed"
      },
      {
        "title": "Reference Documentation",
        "body": "API Details: See references/api-reference.md\nIntegration Examples: See references/integration-examples.md\nMCP Tools Reference: See references/mcp-tools.md"
      },
      {
        "title": "Production Checklist",
        "body": "Use production API key (not sandbox)\n Setup webhook for payment notifications\n Error handling for failed invoice creation\n Store invoice IDs for tracking\n Handle payment expiration\n Customer database integration\n Receipt/confirmation automation"
      },
      {
        "title": "Environments",
        "body": "Production:\n\nDashboard: https://web.mayar.id\nAPI Base: https://api.mayar.id/hl/v1/\n\nSandbox (Testing):\n\nDashboard: https://web.mayar.club\nAPI Base: https://api.mayar.club/hl/v1/"
      }
    ],
    "body": "Mayar Payment Integration\n\nIntegrate Mayar.id payment platform via MCP (Model Context Protocol) for Indonesian payment processing.\n\nPrerequisites\nMayar.id account - Sign up at https://mayar.id\nAPI Key - Generate from https://web.mayar.id/api-keys\nmcporter configured - MCP must be set up in Clawdbot\nSetup\n1. Store API Credentials\nmkdir -p ~/.config/mayar\ncat > ~/.config/mayar/credentials << EOF\nMAYAR_API_TOKEN=\"your-jwt-token-here\"\nEOF\nchmod 600 ~/.config/mayar/credentials\n\n2. Configure MCP Server\n\nAdd to config/mcporter.json:\n\n{\n  \"mcpServers\": {\n    \"mayar\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://mcp.mayar.id/sse\",\n        \"--header\",\n        \"Authorization:YOUR_API_TOKEN_HERE\"\n      ]\n    }\n  }\n}\n\n\nReplace YOUR_API_TOKEN_HERE with actual token.\n\n3. Test Connection\nmcporter list mayar\n\n\nShould show 15+ available tools.\n\nCore Workflows\nCreate Invoice with Payment Link\n\nMost common use case: Generate payment link for customer.\n\nmcporter call mayar.create_invoice \\\n  name=\"Customer Name\" \\\n  email=\"email@example.com\" \\\n  mobile=\"\\\"628xxx\\\"\" \\\n  description=\"Order description\" \\\n  redirectURL=\"https://yoursite.com/thanks\" \\\n  expiredAt=\"2026-12-31T23:59:59+07:00\" \\\n  items='[{\"quantity\":1,\"rate\":500000,\"description\":\"Product A\"}]'\n\n\nReturns:\n\n{\n  \"id\": \"uuid\",\n  \"transactionId\": \"uuid\", \n  \"link\": \"https://subdomain.myr.id/invoices/slug\",\n  \"expiredAt\": 1234567890\n}\n\n\nKey fields:\n\nmobile - MUST be string with quotes: \"\\\"628xxx\\\"\"\nexpiredAt - ISO 8601 format with timezone\nitems - Array of {quantity, rate, description}\nredirectURL - Where customer goes after payment\nWhatsApp Integration Pattern\n// 1. Create invoice\nconst invoice = /* mcporter call mayar.create_invoice */;\n\n// 2. Format message\nconst message = `\n✅ *Order Confirmed!*\n\n*Items:*\n• Product Name\n  Rp ${amount.toLocaleString('id-ID')}\n\n*TOTAL: Rp ${total.toLocaleString('id-ID')}*\n\n💳 *Pembayaran:*\n${invoice.data.link}\n\n⏰ Berlaku sampai: ${expiryDate}\n\nTerima kasih! 🙏\n`.trim();\n\n// 3. Send via WhatsApp\nmessage({\n  action: 'send',\n  channel: 'whatsapp',\n  target: customerPhone,\n  message: message\n});\n\nCheck Payment Status\n# Get latest transactions (check if paid)\nmcporter call mayar.get_latest_transactions page:1 pageSize:10\n\n# Get unpaid invoices\nmcporter call mayar.get_latest_unpaid_transactions page:1 pageSize:10\n\n\nFilter by status: \"created\" (unpaid) → \"paid\" (success).\n\nOther Operations\n# Check account balance\nmcporter call mayar.get_balance\n\n# Get customer details\nmcporter call mayar.get_customer_detail \\\n  customerName=\"Name\" \\\n  customerEmail=\"email@example.com\" \\\n  page:1 pageSize:10\n\n# Filter by time period\nmcporter call mayar.get_transactions_by_time_period \\\n  page:1 pageSize:10 \\\n  period:\"this_month\" \\\n  sortField:\"createdAt\" \\\n  sortOrder:\"DESC\"\n\nCommon Patterns\nMulti-Item Invoice\nitems='[\n  {\"quantity\":2,\"rate\":500000,\"description\":\"Product A\"},\n  {\"quantity\":1,\"rate\":1000000,\"description\":\"Product B\"}\n]'\n// Total: 2M (2×500K + 1×1M)\n\nSubscription/Recurring\n\nUse membership tools:\n\nmcporter call mayar.get_membership_customer_by_specific_product \\\n  productName:\"Premium Membership\" \\\n  productLink:\"your-product-link\" \\\n  productId:\"product-uuid\" \\\n  page:1 pageSize:10 \\\n  memberStatus:\"active\"\n\nPayment Confirmation Flow\n\nOption A: Webhook (Real-time)\n\nRegister webhook URL with Mayar\nReceive instant payment notifications\nBest for production\n\nOption B: Polling (Simpler)\n\nPoll get_latest_transactions every 30-60s\nCheck for new payments\nBest for MVP/testing\nTroubleshooting\n\n404 on payment link:\n\nLink format: https://your-subdomain.myr.id/invoices/slug\nCheck dashboard for correct subdomain\nDefault may be account name\n\nInvalid mobile number:\n\nMobile MUST be string: \"\\\"628xxx\\\"\" (with escaped quotes)\nFormat: 628xxxxxxxxxx (no + or spaces)\n\nExpired invoice:\n\nDefault expiry is expiredAt timestamp\nCustomer can't pay after expiration\nCreate new invoice if needed\nReference Documentation\nAPI Details: See references/api-reference.md\nIntegration Examples: See references/integration-examples.md\nMCP Tools Reference: See references/mcp-tools.md\nProduction Checklist\n Use production API key (not sandbox)\n Setup webhook for payment notifications\n Error handling for failed invoice creation\n Store invoice IDs for tracking\n Handle payment expiration\n Customer database integration\n Receipt/confirmation automation\nEnvironments\n\nProduction:\n\nDashboard: https://web.mayar.id\nAPI Base: https://api.mayar.id/hl/v1/\n\nSandbox (Testing):\n\nDashboard: https://web.mayar.club\nAPI Base: https://api.mayar.club/hl/v1/"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ahsanatha/mayar-payment",
    "publisherUrl": "https://clawhub.ai/ahsanatha/mayar-payment",
    "owner": "ahsanatha",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mayar-payment",
    "downloadUrl": "https://openagent3.xyz/downloads/mayar-payment",
    "agentUrl": "https://openagent3.xyz/skills/mayar-payment/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mayar-payment/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mayar-payment/agent.md"
  }
}