Setup Ezypayのロゴ

Setup Ezypay

コミュニティ
afu-it
setup-ezypay

公式のEzypay開発者向けドキュメントを参照し、OAuth 2.0のパスワードグラントトークン、merchantヘッダー、顧客、Payment Capture Pageのiframeトークン化、都度請求書、プランとサブスクリプション、Checkoutセッション、Pay Nowによる支払い回復、返金とクレジットノート、X-Ezypay-SignatureのHMAC-SHA1検証を伴うWebhook、決済失敗への対応、精算レポート、サンドボックス/本番環境の設定、Apple PayまたはGoogle Payを使って、Ezypayの決済連携を設定、構築、デバッグ、レビュー、説明します。Ezypay Malaysia、MYR建てカードの継続課金、ジムや会員制サービスのサブスクリプション、VisaおよびMastercardのトークン、invoice_paidまたはinvoice_past_dueのWebhook、再試行、貸倒処理、精算、本番運用の準備に取り組む際にご利用ください。

Add to TypingMind

概要

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

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

  • どのLLMでも利用可能

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

  • 7個の同梱ファイル

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

  • オープンソース

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

インストール

AIスキル「Setup Ezypay」を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-ezypay
  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-ezypay .claude/skills/setup-ezypay
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

Ezypay Payment Gateway

Use this skill for Ezypay subscription billing and card collection work.

Source

Read references/ezypay-api.md first. It holds environments, base URLs, auth, the Malaysia scope, the end-to-end server flow, the full endpoint catalogue, statuses, error codes, amount rules, and the signature summary.

Read references/ezypay-billing.md for request and response field tables: customers, payment methods, invoices, refunds, plans, subscriptions, future invoices, checkout, transactions, credit notes, settlements, reports, and partner billing.

Read references/ezypay-webhooks.md for every event type, payload shapes, HMAC-SHA1 verification with the official test vector, retries, and duplicates.

Read references/ezypay-payment-methods.md for the Payment Capture Page (iframe, postMessage, styling, mobile WebViews), Apple Pay, Google Pay, payment method payloads, sandbox test data, and the Malaysia card failure codes.

Read references/account-setup.md for onboarding, credentials, sandbox access, go-live checklists, fees model, and settlement timing.

Read references/source-map.md to find the official page for any fact and to see doc coverage.

Core Workflow

  1. Confirm the model: on-demand invoices (you schedule) or Ezypay subscriptions (Ezypay schedules). Checkout is a hosted one-off card page.
  2. Confirm credentials: partner client_id and client_secret, plus per-merchant username, password, and merchant ID. Each branch has its own merchant account.
  3. Get a bearer token from the identity host with grant_type=password and reuse it until it expires (60 minutes).
  4. Create the customer with POST /v2/billing/customers and store id.
  5. Collect the card with the Payment Capture Page iframe; read the token from postMessage and check link_status.
  6. Create a local pending payment, then POST /v2/billing/invoices with externalInvoiceId as your idempotency key, or create a plan and subscription.
  7. Treat Checkout successUrl parameters and iframe messages as UX only.
  8. Verify the X-Ezypay-Signature webhook header (HMAC-SHA1 hex of the raw body with your client key), dedupe on requestId, then requery GET /v2/billing/invoices/{invoiceId}.
  9. Settle on invoice_paid with matching invoice id, externalInvoiceId, merchant ID, currency MYR, and your item amount.
  10. Handle invoice_past_due: show failedPaymentReason, replace invalid payment methods, retry, write off, or record external payment.

Core Facts

  • Sandbox hosts: identity-sandbox.ezypay.com, vault-sandbox.ezypay.com, api-sandbox.ezypay.com, hosted-global-sandbox.ezypay.com.
  • Production hosts: identity.ezypay.com, vault.ezypay.com, api-global.ezypay.com, hosted-global.ezypay.com.
  • Billing base: https://api-sandbox.ezypay.com/v2 (paths start /billing/...). Webhooks base: .../v2/webhooks.
  • Token: POST https://identity-sandbox.ezypay.com/token, form-encoded, scope integrator billing_profile create_payment_method offline_access.
  • Every billing call sends Authorization: Bearer <token> and the merchant: <MERCHANT_ID> header.
  • Malaysia: Visa and Mastercard; Apple Pay and Google Pay are beta. No bank direct debit, no PayTo, no wallet, no FPX or DuitNow.
  • 3D Secure is not supported and CVV is not required. Charge in MYR only (no cross-border); decimals allowed.
  • Amounts are decimal major units in { "currency": "MYR", "value": 49.90 }, not sen.
  • Ezypay fees can be added to the invoice as extra items (transaction_fee, load_fee, failed_payment_fee).
  • Webhook signature: X-Ezypay-Signature = lowercase hex HMAC-SHA1(clientKey, raw body). Retries hourly, up to 24 times.
  • Refund: PUT /v2/billing/invoices/{invoiceId}/refund, empty body for full; track credit_note_paid or credit_note_failed.
  • Settlement holding period is T+3 business days for Malaysia; frequency weekly or monthly.

Critical Rules

  • Keep client_secret, merchant password, client key, and bearer tokens server-side. The PCP iframe URL exposes a token, so build it per session.
  • Never mark paid from the iframe message, Checkout successUrl query string, or invoice create response (PROCESSING is not paid).
  • Verify the signature over the exact raw bytes before parsing JSON; use constant-time comparison.
  • Register a clientKey on every webhook; without one there is nothing to verify.
  • Send a unique externalInvoiceId per invoice so retries of your own request do not double charge.
  • Compare your charged item, not the invoice total, when customer-paid fees are on.
  • Store invoice id, documentNumber, customerId, paymentMethodToken, and merchant ID before settling.
  • Use one merchant account per branch; never share one across branches.
  • Do not promise FPX, DuitNow, e-wallets, or 3DS for Malaysia; they are not offered.
  • Confirm Apple Pay and Google Pay enablement with Ezypay before launch; both are beta.

Completion Criteria

An Ezypay integration is done only when:

  1. Tokens are fetched server-side, cached, and refreshed or re-created after 60 minutes, within the token rate limit.
  2. Customers are created and synced on profile changes; PCP returns a token linked to the customer.
  3. Invoices or subscriptions are created server-side with the merchant header and a unique externalInvoiceId.
  4. A webhook per merchant is registered with a clientKey and the minimum events from references/ezypay-webhooks.md.
  5. The webhook handler verifies X-Ezypay-Signature over the raw body, dedupes requestId, requeries the invoice, and settles once.
  6. Failed payments show reason and fees, support retry, write-off, record external payment, and Pay Now.
  7. Refunds and chargebacks update local state from credit note events.
  8. Tests cover bad signature, replayed requestId, wrong merchant, wrong currency or amount, PAST_DUE, refund failure, and a paid sandbox invoice using the test cards.
  9. Deploy docs list EZYPAY_* variables, webhook URL, client key, and sandbox versus production hosts.

Loophole Review Loop

When asked whether an Ezypay plan is "100% confident", repeat until no factual gaps remain:

  1. List trust boundaries: browser iframe, postMessage listener, Checkout redirect, backend token cache, identity host, billing API, vault, webhook receiver, raw-body parser, database, fulfilment, refund job, retry job.
  2. Check bypasses: forged postMessage from another origin, fake successUrl query, unsigned webhook, signature over re-serialised JSON, wrong client key, sandbox and production mix, wrong merchant header, invoice reused across customers, duplicate requestId, PROCESSING treated as paid, fee items breaking amount checks, expired token mid-batch, invalid payment method auto-rebill stop, refund with low wallet balance, chargeback reversal after paid.
  3. Add fixes: origin check on message events, server requery of the invoice, raw-body HMAC with constant-time compare, per-merchant webhook and key, idempotent settlement keyed on invoice id, externalInvoiceId uniqueness, event log, separate env config.
  4. Re-read the relevant reference file for any gap.
  5. State what still depends on Ezypay account setup: enabled methods, fee configuration, retry settings, checkout attempt limit, settlement schedule, Apple Pay domain registration, and Google Pay approval.

同梱ファイル

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

よくある質問

AIスキル「Setup Ezypay」では何ができますか?

公式のEzypay開発者向けドキュメントを参照し、OAuth 2.0のパスワードグラントトークン、merchantヘッダー、顧客、Payment Capture Pageのiframeトークン化、都度請求書、プランとサブスクリプション、Checkoutセッション、Pay Nowによる支払い回復、返金とクレジットノート、X-Ezypay-SignatureのHMAC-SHA1検証を伴うWebhook、決済失敗への対応、精算レポート、サンドボックス/本番環境の設定、Apple PayまたはGoogle Payを使って、Ezypayの決済連携を設定、構築、デバッグ、レビュー、説明します。Ezypay Malaysia、MYR建てカードの継続課金、ジムや会員制サービスのサブスクリプション、VisaおよびMastercardのトークン、invoice_paidまたはinvoice_past_dueのWebhook、再試行、貸倒処理、精算、本番運用の準備に取り組む際にご利用ください。

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

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

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

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

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

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

Setup Ezypayで使えるAIモデルの数に制限はありますか?

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る
obraのロゴ

Using Superpowers

obra
コミュニティ人気

会話を始めるときに使用します。スキルの探し方と使い方を定め、確認の質問を含むあらゆる応答の前に、必ずスキルを呼び出すことを求めます。

25.8K
288.1K
5ファイル
表示
affaan-mのロゴ

Context And Decisions

affaan-m
コミュニティ人気

必要に応じて、範囲を絞ったCONTEXT.mdで安定したドメインコンテキストを管理し、元に戻しにくい判断はECC既存のarchitecture-decision-recordsスキルに振り分けます。ドメイン用語について繰り返し説明が必要な場合、1つの用語に複数の意味がある場合、曖昧な表現がモジュール境界の誤りにつながる場合、ドメインの意味をアーキテクチャ上の判断と分けておく必要がある場合に…

41.4K
277.3K
2ファイル
表示
affaan-mのロゴ

Docs Governance

affaan-m
コミュニティ人気

ドキュメントガバナンスに関する幅広い依頼を既存のECCスキルに振り分け、対応付けられたドキュメントの役割、リンク、ADRインデックス、根拠への参照を対象に、任意で読み取り専用の監査を実行します。ユーザーが特定のスキルを指定せずに、ドキュメントガバナンス、プロジェクトのナレッジ整理、ドキュメントの整合性、または再現可能なドキュメント監査を求めた場合に…

41.4K
277.3K
4ファイル
表示
affaan-mのロゴ

Ecc Conventions

affaan-m
コミュニティ人気

ECCの開発規約とパターン。conventional commitsを採用するJavaScriptプロジェクト向けです。

41.4K
277.3K
1ファイル
表示

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

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