Mayar Payment Integration for Openclaw

A comprehensive MCP integration for Mayar.id to handle Indonesian payment processing, invoice generation, and transaction tracking via AI agents.

ahsanatha
v1.0.0
Jan 31, 2026
0
2.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mayar-payment-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mayar-payment-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Mayar Payment Integration?

The Mayar Payment Integration is a specialized toolset designed to bridge the gap between AI coding agents and the Indonesian financial ecosystem. By utilizing Openclaw Skills, developers can programmatically generate invoices, create secure payment links, and track customer transactions across various local payment methods such as bank transfers, e-wallets, and QRIS. This skill leverages the Model Context Protocol (MCP) to provide a standardized interface for financial operations within the Clawdbot environment.

This integration is particularly valuable for businesses targeting the Indonesian market, as it simplifies the complexity of local payment gateway APIs. With Openclaw Skills, your AI agent can manage the entire payment lifecycle—from initial checkout link generation to verifying successful transaction statuses—without requiring manual intervention. It provides a robust foundation for building automated storefronts, subscription services, and digital product delivery workflows.

Mayar Payment Integration Use Cases

  • Generating dynamic payment links for e-commerce checkout flows.
  • Automating invoice creation for professional services and consulting.
  • Real-time tracking of payment statuses to trigger order fulfillment.
  • Formatting and sending payment request messages via WhatsApp integration.
  • Managing recurring billing and membership status for subscription-based platforms.

How Mayar Payment Integration Works

  1. The AI agent identifies a payment-related intent, such as a request to bill a customer or check account balance.
  2. The agent invokes the relevant Mayar MCP tool through the Openclaw Skills interface, passing necessary parameters like customer details and line items.
  3. The integration communicates with the Mayar.id API using a secure JWT token to process the request.
  4. Mayar returns structured data, including unique transaction IDs and hosted payment URLs.
  5. The AI agent processes this response to update the user, send notification messages, or log the data for future auditing.

Mayar Payment Integration Setup

To get started with this integration, first store your API credentials locally:

mkdir -p ~/.config/mayar
cat > ~/.config/mayar/credentials << EOF
MAYAR_API_TOKEN="your-jwt-token-here"
EOF
chmod 600 ~/.config/mayar/credentials

Next, configure your MCP server within config/mcporter.json to enable Openclaw Skills functionality:

{
  "mcpServers": {
    "mayar": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.mayar.id/sse",
        "--header",
        "Authorization:YOUR_API_TOKEN_HERE"
      ]
    }
  }
}

Verify the setup by running mcporter list mayar to see the available payment tools.

Mayar Payment Integration Data Schema & Taxonomy

The skill manages several key data entities to ensure reliable payment tracking:

Entity Key Fields Description
Invoice id, transactionId, link, expiredAt The primary object representing a payment request sent to a customer.
Line Item quantity, rate, description Individual products or services included in an invoice.
Transaction status, amount, createdAt Logged payment attempts, categorized as 'created' (unpaid) or 'paid'.
Customer customerName, customerEmail, mobile User identification details required for generating invoices and tracking history.

Mayar Payment Integration Advanced Features

  • Support for multi-item invoices with automated subtotaling and itemized descriptions.
  • Membership and subscription management tools to filter customers by product link or active status.
  • Flexible payment expiration settings using ISO 8601 timestamps to control link validity.
  • Advanced transaction filtering by time periods (e.g., 'this_month') and custom sort orders.
  • Native support for WhatsApp-friendly message generation to enhance customer communication via Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*