Setup Billplz logo

Setup Billplz

Community
afu-it
setup-billplz

Set up, build, debug, review, and explain Billplz payment integrations using Billplz API docs, help center, GitHub plugins, status pages, payment collections, payment forms, Payment Order payouts, X Signature callbacks/redirects, V5 checksums, sandbox/live setup, API Secret Key, Collection ID, and X Signature Key.

Overview

Publisherafu-it
Repositorymalaysia-payment-gateway
Skill namesetup-billplz
Stars
74
Forks
11
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by afu-it on GitHub. Read the source before you install it.

Installation

Install the Setup Billplz AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-billplz
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/afu-it/malaysia-payment-gateway.git /tmp/malaysia-payment-gateway
mkdir -p .claude/skills
cp -r /tmp/malaysia-payment-gateway/setup-billplz .claude/skills/setup-billplz
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Setup Billplz in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Setup Billplz on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Setup Billplz is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Billplz Payment Gateway

Use this skill for Billplz payment collection, payment form, catalog, and Payment Order payout work.

Source

Read references/billplz-docs.md before giving factual API guidance or writing integration code. It contains source URLs, environment bases, API flow, V3/V4/V5 endpoint notes, X Signature, V5 checksum, Payment Order, card tokenization, status pages, GitHub plugin notes, and settlement/security cautions.

Read references/account-setup.md when user asks how to register, which API keys are needed, where credentials come from, or what dashboard setup is required.

Core Workflow

  1. Identify product: Collection/Bill checkout, Payment Form/Catalog, Payment Order payout, OAuth partner flow, plugin, or zakat flow.
  2. Identify environment: sandbox at billplz-sandbox.com or production at billplz.com.
  3. Confirm credentials: API Secret Key, Collection ID, and X Signature Key.
  4. Create local pending payment before creating Billplz bill.
  5. Create Bill server-side under a Collection with amount in cents, callback_url, and optional redirect_url.
  6. Redirect payer to returned Bill URL.
  7. Verify X Signature on callback/redirect with HMAC-SHA256 and X Signature Key.
  8. Settle idempotently after Bill ID, Collection ID, amount, paid/state, and local reference match.

Core Facts

  • Production API base: https://www.billplz.com/api/.
  • Sandbox API base: https://www.billplz-sandbox.com/api/.
  • Auth: HTTPS Basic Auth where API Secret Key is username and password is blank.
  • API accepts application/x-www-form-urlencoded and JSON; responses are JSON.
  • Currency: MYR only. Amounts use smallest currency unit, for example 100 equals RM 1.00.
  • Every Bill belongs to a Collection. Open Collection cannot create bills via API.
  • callback_url is compulsory for reliable backend updates; redirect_url is optional for user experience.
  • Callback and redirect execution order is not fixed; handlers must prevent duplicate updates.
  • X Signature uses HMAC-SHA256 over sorted key-value source string with X Signature Key.
  • V5 endpoints such as Payment Order use epoch and checksum with HMAC-SHA512.

Critical Rules

  • Keep API Secret Key and X Signature Key server-side only.
  • Use X Signature callback/redirect. Basic callback/redirect are disabled by default for newer accounts due security reasons.
  • Do not rely on redirect URL alone; browser redirect is not guaranteed.
  • Return HTTP 200 quickly for valid callbacks. Billplz retries failed callbacks and account rank can be degraded for unsuccessful callback attempts.
  • Verify amount, paid/state, Bill ID, Collection ID, and local reference before marking paid.
  • Pull FPX banks or payment gateway availability from Billplz when exact current options matter; static lists can drift.
  • For Payment Order payouts, verify HMAC-SHA512 checksum and use unique reference_id to prevent duplicate payout creation.
  • Do not scrape status pages for business logic; use them for operational awareness.

Completion Criteria

A Billplz checkout integration is done only when:

  1. Bill creation runs server-side from an authenticated user flow.
  2. callback_url is configured, public over HTTPS, and receives POST payment completion events.
  3. X Signature is verified before any settlement on callback and redirect handlers.
  4. Settlement checks provider, Bill ID, Collection ID, amount, paid/state, and local reference.
  5. Duplicate callback/redirect replay is harmless.
  6. Fake redirect, wrong amount, wrong Bill ID, and invalid signature cannot unlock access.
  7. Sandbox payment has been completed and recorded.
  8. Tests cover invalid signature, duplicate notification, wrong amount/collection, and successful settlement.
  9. Deployment docs include API Secret Key, X Signature Key, Collection ID, callback URL, redirect URL, and sandbox/live separation.

Loophole Review Loop

When asked whether a Billplz strategy is "100% confident", run this loop until no factual gaps remain:

  1. List trust boundaries: browser redirect, backend bill creation, Billplz API, callback receiver, database, fulfilment job, dashboard settings, and payout job.
  2. Check bypasses: fake redirect, forged callback, wrong X Signature source string, wrong amount, wrong bill/collection, duplicate callback, callback before redirect, redirect before callback, unpaid/due bill marked paid, deleted bill, API Secret Key leak, sandbox/live mix, Payment Order duplicate payout, wrong V5 checksum order.
  3. Add fixes: server-side bill creation, local pending payment first, X Signature HMAC verification, strict amount/status checks, idempotency keys, durable event log, public HTTPS callback, environment separation, Payment Order reference_id, and audit trail.
  4. Re-read references/billplz-docs.md sections relevant to any gap.
  5. State remaining uncertainty if it depends on account plan, enabled payment gateways, current pricing, operational status pages, partner-only OAuth, or dashboard-only settings.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Setup Billplz AI skill do?

Set up, build, debug, review, and explain Billplz payment integrations using Billplz API docs, help center, GitHub plugins, status pages, payment collections, payment forms, Payment Order payouts, X Signature callbacks/redirects, V5 checksums, sandbox/live setup, API Secret Key, Collection ID, and X Signature Key.

Why use Setup Billplz on TypingMind?

Because you install it once and use it with any model. Setup Billplz is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Setup Billplz in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-billplz. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Setup Billplz?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Setup Billplz?

As many as you like. As long as a model supports skills, you can use Setup Billplz with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Setup Billplz AI skill free?

It is published on GitHub by afu-it. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇