Mayar Payment Integration for Openclaw

An AI-powered payment integration skill that enables automated Mayar.id invoice generation and transaction tracking for Indonesian markets.

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

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install mayar-payment

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 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 skill is a robust integration designed to connect AI coding agents with the Mayar.id payment ecosystem through the Model Context Protocol (MCP). This skill enables developers to automate the creation of invoices, payment links, and recurring subscriptions directly within their agent-driven workflows. As a specialized addition to the Openclaw Skills collection, it provides native support for popular Indonesian payment methods including bank transfers, e-wallets, and QRIS.

By leveraging this Openclaw Skills component, teams can build sophisticated e-commerce or service platforms that handle financial transactions with minimal manual intervention. The skill abstracts the complexity of payment APIs, allowing your AI agent to manage the entire payment lifecycle—from initial link generation to final status verification—while maintaining high security and reliability standards.

Mayar Payment Integration Use Cases

  • Generate instant payment links for customer orders during automated chat interactions.
  • Track payment status and automatically trigger order fulfillment upon confirmation.
  • Create and send professionally formatted WhatsApp payment messages to customers.
  • Manage recurring billing and active membership statuses for subscription-based digital products.
  • Monitor account balances and generate transaction reports for financial auditing.

How Mayar Payment Integration Works

  1. The AI agent identifies a payment-related trigger and selects the appropriate tool from the Mayar Openclaw Skills set.
  2. The skill communicates with the Mayar.id API via a configured MCP server using secure JWT credentials.
  3. For invoice creation, the agent provides customer metadata, itemized pricing, and expiration parameters.
  4. Mayar processes the request and returns a structured JSON response containing a unique payment URL and transaction ID.
  5. The agent monitors the transaction via polling or webhooks to update the system state once the status changes from created to paid.

Mayar Payment Integration Setup

1. Secure API Credentials

Create a local configuration file to store your Mayar JWT token:

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

2. Configure MCP Server

Add the following configuration to your mcporter.json file to enable the Openclaw Skills integration:

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

3. Verify Connection

Run the following command to ensure the tools are available:

mcporter list mayar

Mayar Payment Integration Data Schema & Taxonomy

The skill organizes payment data using the following structure for invoices and transactions:

Attribute Description Format
id Unique identifier for the invoice UUID string
transactionId Internal reference for the financial movement UUID string
link The customer-facing payment URL URL string
expiredAt Expiration deadline for the payment link ISO 8601 Timestamp
items Array of purchased goods (quantity, rate, description) JSON Array
status Current payment state (created, paid, expired) String

Mayar Payment Integration Advanced Features

  • Multi-item support allowing complex invoices with various quantities and rates in a single request.
  • Native WhatsApp integration patterns for sending automated transaction alerts.
  • Subscription management tools to filter membership customers by specific product IDs or status.
  • Support for multiple environments, allowing seamless switching between Sandbox and Production dashboards.
  • Advanced transaction filtering by time periods (e.g., this_month) and custom sort fields for financial analytics.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*