Sandbox
@afu-it/malaysia-payment-gateway

Malaysia payment gateway skills for agent setups

This repository packages reusable Skills for Malaysian payment gateway work. The skills cover provider setup, server-side checkout, callback and webhook checks, and safe settlement steps for agents to follow.

70 stars12 forksUpdated 3mo ago
Who it's for

Builders who are integrating FPX, DuitNow QR, cards, e-wallets, or local payment gateways with agent-assisted coding.

What it delivers

You can add payment gateway integrations with a repeatable checklist for checkout, verification, and settlement.

What it does

Gateway-agnostic planning

The `malaysia-payment-gateway` skill gives a common checklist for review, security, and integration planning.

Provider-specific setup skills

Separate skills cover CHIP, Curlec, Xendit, Bayarcash, BCL, toyyibPay, Billplz, Fiuu, senangPay, HitPay, and Stripe Malaysia.

Webhook and callback verification

The guidance emphasizes signature checks, re-fetching payment state, and matching amount, currency, and reference before marking paid.

Installation with Skills CLI

The README shows how to install the repo, list skills, install all skills, or install a single skill.

How to get it

  1. 1Install from this repository
    npx skills@latest add afu-it/malaysia-payment-gateway
  2. 2List available skills
    npx skills@latest add afu-it/malaysia-payment-gateway --list
  3. 3Install all skills
    npx skills@latest add afu-it/malaysia-payment-gateway --all
  4. 4Install one skill
    npx skills@latest add afu-it/malaysia-payment-gateway --skill setup-curlec
  5. 5Install globally
    npx skills@latest add afu-it/malaysia-payment-gateway -g
  6. 6Verify CLI version
    npx skills@latest --version

README

Malaysia Payment Gateway Skills

Made in Malaysia Agent Skills Payment Gateway

Agent skills for implementing Malaysian payment gateway integrations with server-side checkout, verified webhooks, and idempotent settlement.

Made from Malaysia for developers building FPX, DuitNow QR, card, e-wallet, and local payment flows.

Skills

SkillUse for
malaysia-payment-gatewayGateway-agnostic planning, review, and security checklist
setup-chipCHIP Collect checkout, purchases, callbacks, refunds, payment methods
setup-curlecCurlec/Razorpay Orders API, Checkout.js, callbacks, webhooks
setup-xenditXendit Payment Sessions, Payment Requests, webhooks, xenPlatform
setup-bayarcashBayarcash API v2/v3, payment intents, callbacks, checksums
setup-bclBCL Pay, Payment Link, QR Terminal, Forms, Bayarcash-linked setup
setup-toyyibpaytoyyibPay categories, bills, callbacks, DuitNow QR, transaction checks
setup-billplzBillplz collections, bills, X Signature callbacks, Payment Order payouts
setup-fiuuFiuu hosted payment, Seamless Integration, Inpage Checkout, XDK, callbacks
setup-senangpaysenangPay hosted/manual checkout, Direct API, callbacks, query status, refunds, plugins, recurring, payout, tokenisation, split settlement
setup-hitpayHitPay Payment Request API, hosted checkout, Drop-In UI, webhooks, refunds, plugins, recurring billing, payouts
setup-stripe-malaysiaStripe Malaysia Checkout, Payment Element, webhooks, Stripe CLI, MYR, cards, FPX

Install

Before installing:

  1. Check current installed version.
  2. Verify your agent supports Skills.
  3. Update npm if needed.

Install from this repository:

npx skills@latest add afu-it/malaysia-payment-gateway

The CLI can show available skills and let you select them interactively.

List available skills:

npx skills@latest add afu-it/malaysia-payment-gateway --list

Install all skills:

npx skills@latest add afu-it/malaysia-payment-gateway --all

Install one skill:

npx skills@latest add afu-it/malaysia-payment-gateway --skill setup-curlec

Install globally:

npx skills@latest add afu-it/malaysia-payment-gateway -g

Verify CLI version:

npx skills@latest --version

Recommended Setup

  1. Install the overview skill first:
npx skills@latest add afu-it/malaysia-payment-gateway --skill malaysia-payment-gateway
  1. Install the provider you need:
npx skills@latest add afu-it/malaysia-payment-gateway --skill setup-curlec
  1. Ask your agent to inspect your project before coding.

  2. Ask your agent to implement checkout, webhook verification, settlement, tests, and docs together.

How To Ask Your Agent

Use the skill name in your prompt:

Use $malaysia-payment-gateway to review my app payment flow and tell me what is missing before production.
Use $setup-curlec to implement Curlec checkout, callback verification, webhook settlement, and tests in this Next.js project.
Use $setup-chip to add CHIP Collect checkout and webhook handling. Do not unlock access from redirect alone.
Use $setup-xendit to implement hosted checkout with Xendit Payment Sessions and idempotent webhook settlement.
Use $setup-bayarcash to integrate Bayarcash payments with checksum/callback verification.
Use $setup-bcl to set up BCL Pay and explain which parts are BCL-owned versus Bayarcash-linked.
Use $setup-toyyibpay to integrate toyyibPay bills, callback hash verification, and idempotent settlement.
Use $setup-billplz to integrate Billplz bills, X Signature verification, and idempotent settlement.
Use $setup-fiuu to integrate Fiuu hosted checkout, Notify URL verification, Callback URL handling, and idempotent settlement.
Use $setup-senangpay to integrate senangPay hosted checkout, Callback URL verification, query status reconciliation, and idempotent settlement.
Use $setup-hitpay to integrate HitPay Payment Request checkout, webhook signature verification, status fallback, and idempotent settlement.
Use $setup-stripe-malaysia to integrate Stripe Malaysia checkout, webhook verification, and idempotent settlement.

Agent Rules

Ask the agent to:

  • Read existing code before adding new files.
  • Read provider references/account-setup.md before explaining registration, credentials, dashboard setup, or required API keys.
  • Use provider references/account-setup.md for framework setup notes, required env vars, and deployment secrets where documented.
  • When referral or invite guidance exists, present it as optional and transparent; never imply it is required unless provider registration actually requires an invite.
  • Keep gateway secrets server-side.
  • Create a local pending payment before provider checkout.
  • Verify webhook/callback signatures.
  • Re-fetch payment state from the provider when possible.
  • Match provider, gateway reference, amount, currency, and local payment status before marking paid.
  • Make settlement idempotent.
  • Add tests for invalid signatures, duplicate events, wrong amount/currency, and successful settlement.

Production Checklist

  • Required environment variables are documented.
  • Database migrations are included.
  • Webhook URLs are configured in sandbox and live dashboards.
  • Sandbox payment succeeds.
  • Duplicate webhook replay is harmless.
  • Fake success redirect cannot unlock paid access.
  • Live and sandbox keys are separated.

Contribute A New Gateway

Contributions are welcome. Use one folder per skill.

Step 1: Pick a skill name

Use action-style names:

setup-toyyibpay
setup-senangpay
setup-stripe-malaysia

Rules:

  • Lowercase only.
  • Use hyphens.
  • Keep it short.
  • Folder name must match name: in SKILL.md.

Step 2: Create the folder

mkdir -p setup-yourgateway/references setup-yourgateway/agents

Step 3: Add SKILL.md

Minimum shape:

---
name: setup-yourgateway
description: Set up, build, debug, review, and explain YourGateway payment integrations. Use when working with checkout, payment links, callbacks, webhooks, signatures, refunds, sandbox/live setup, and payment settlement for YourGateway.
---

# Setup YourGateway

Use this skill for YourGateway integration work.

## Source

Read `references/yourgateway.md` before giving factual API guidance or writing integration code.

## Core Workflow

1. Identify environment: sandbox or production.
2. Create local pending payment first.
3. Create checkout/session server-side.
4. Verify callback/webhook signature.
5. Re-fetch payment state from provider when possible.
6. Settle idempotently after amount, currency, provider, and reference match.

Step 4: Add agents/openai.yaml

interface:
  display_name: "Setup YourGateway"
  short_description: "Set up YourGateway payments"
  default_prompt: "Use $setup-yourgateway to integrate YourGateway payments."

Step 5: Add references

Create:

setup-yourgateway/references/yourgateway.md

Include:

  • Official docs URLs.
  • Environment base URLs.
  • Auth method.
  • Checkout/session endpoint.
  • Webhook/callback signature rules.
  • Amount unit rules.
  • Sandbox test notes.
  • Common failure fixes.

Do not include real API keys, tokens, merchant secrets, or private customer data.

Step 6: Validate

Run validator:

python3 /home/user/.codex/skills/.system/skill-creator/scripts/quick_validate.py setup-yourgateway

If you do not have that validator, install the latest Skills CLI and at minimum verify:

npx skills@latest --version

Step 7: Test install locally

From a separate test directory:

npx skills@latest add /path/to/malaysia-payment-gateway --skill setup-yourgateway

Step 8: Open pull request

git checkout -b add-setup-yourgateway
git add setup-yourgateway
git commit -m "Add setup-yourgateway skill"
git push origin add-setup-yourgateway

Then open a pull request with:

  • Gateway name.
  • What products/features are covered.
  • Official docs source links.
  • Validation result.
  • Any known gaps.

Files in the repo

Repository payload14 top-level entries
  • malaysia-payment-gateway
  • setup-bayarcash
  • setup-bcl
  • setup-billplz
  • setup-chip
  • setup-curlec
  • setup-fiuu
  • setup-hitpay
  • setup-senangpay
  • setup-stripe-malaysia
  • setup-toyyibpay
  • setup-xendit
  • .gitignore
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k