Setup Billplzのロゴ

Setup Billplz

コミュニティ
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.

概要

公開者afu-it
リポジトリmalaysia-payment-gateway
スキル名setup-billplz
スター
74
フォーク
11
同梱ファイル
3
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    afu-itがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルSetup BillplzをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-billplz
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSetup Billplzを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にSetup Billplzを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Setup Billplzは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでSetup Billplzを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Setup Billplzはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSetup Billplzをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-billplzを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Setup Billplzを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Setup Billplzは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSetup Billplzを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Setup Billplz」は無料ですか?

afu-itがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇