Setup Fasspayのロゴ

Setup Fasspay

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

公式のFasspay資料、公式のFasspay for WooCommerceプラグインのソース、Soft Space Developer Portalを参照し、eコマース向けwebInitiateRequestのホステッド決済ページ、HMAC-SHA256によるX-Signatureリクエスト署名、backendURLのコールバック検証、statusIdの処理、checkTransactionStatus、取消、事前承認の売上確定、ホワイトラベルのブランディング、UATと本番環境の違い、対面決済向けFasstap SoftPOS SDK、Fasstap App-to-AppおよびSmart Terminal SDKを扱い、Fasspay(Soft SpaceグループのFass Payment Solutions)の決済連携を設定、構築、デバッグ、レビュー、説明します。FasspayまたはSoft Spaceを使ったMYR建てカード決済(Visa、Mastercard、JCB、MyDebit)、FPX、DuitNow QR、電子ウォレット、スマートフォンのタッチ決済、Android POS端末、コールバック、再照会、取消、本番運用の準備に取り組む際にご利用ください。

Add to TypingMind

概要

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

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

  • どのLLMでも利用可能

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

  • 9個の同梱ファイル

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

  • オープンソース

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

インストール

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Fasspay Payment Gateway

Use this skill for Fasspay (Soft Space) payment integration work.

Source

Read references/fasspay-api.md before giving factual guidance or writing code for online checkout. It holds the endpoint catalogue, environments, request signing, the create-payment fields, the callback format and its verification, status codes, requery, void, capture, and known gaps. Its facts come from the official Fasspay for WooCommerce plugin source (v1.0.14, published by Fasspay on WordPress.org), because Fasspay publishes no public e-commerce API document.

Read references/fasspay-in-person.md for card-present work: Fasstap SDK (tap on phone), Fasstap App-to-App, Smart Terminal SDK, and the provisioning Web API from developers.softspace.com.my. Field-level tables live in references/fasspay-fasstap-sdk.md, references/fasspay-app-to-app.md, references/fasspay-smart-terminal.md, and error codes in references/fasspay-fasstap-codes.md.

Read references/account-setup.md for registration, credentials, UAT vs production, payment method activation, settlement, and pricing links.

Read references/source-map.md to pick the right official page and to see coverage.

Core Workflow

  1. Identify surface: online checkout (e-commerce API), Fasstap SDK, Fasstap App-to-App, or Smart Terminal.
  2. Identify environment: UAT https://wallet-uat.fasspay.com or production https://ecom.fasspay.com.
  3. Confirm credentials from Fasspay: Merchant ID (mid) and the shared Secret Key for that environment.
  4. Create a local pending payment with a unique trxRefNo per attempt, expected amount in sen, and currency MYR.
  5. Call POST /v3/ecom/webInitiateRequest server-side with the messages envelope, X-Timestamp, and X-Signature.
  6. Read paymentURL from the JSON string in the response messages field and redirect the customer there.
  7. Treat responsePageURL as browser UX only; never mark paid from it.
  8. On the backendURL callback, verify X-Signature over the raw body plus X-Timestamp, enforce the 300 second window, then parse.
  9. Settle idempotently on statusId 100, 104 (or legacy 00) only after trxRefNo, amount, currency, and environment match.
  10. Use POST /v3/ecom/checkTransactionStatus as a fallback when a callback is missing or unclear.

Core Facts

  • Production API base: https://ecom.fasspay.com. UAT base: https://wallet-uat.fasspay.com.
  • All e-commerce calls are POST JSON over HTTPS under /v3/ecom/.
  • Signature: X-Signature = base64(HMAC-SHA256(secretKey, bodyJson + X-Timestamp)), header X-Signature-Alg: HmacSHA256, X-Timestamp in Unix seconds.
  • The secret is used as the literal string key; do not base64-decode it.
  • Sign the exact bytes you send; the plugin uses json_encode(..., JSON_UNESCAPED_SLASHES).
  • Create payment wraps fields in {"messages": "<JSON string>", "sandboxMode": <bool>}.
  • amount is an integer in sen (RM 1.00 is 100). Only MYR is accepted by the plugin.
  • Callback headers: X-Signature (or X-Fasspay-Signature) and X-Timestamp; body may be {"messages": "<JSON string>"}.
  • Paid statuses: 100 APPROVED, 104 SETTLED, legacy 00. Failed: 102 DECLINED, legacy 02. Voided/cancelled: 107, legacy 03. Refunded: 06.
  • Pending statuses: 101 PROCESSING, 106 OPENED (pending from bank), 111 PROCESSING_VOID, 123 PROCESSING_CAPTURE, 115 PENDING_APPROVAL (FPX B2B), 122 AUTHORIZED (pre-auth).
  • transactionMethod in callbacks: 0 FPX, 5 card, 34 e-wallet, 35 DuitNow QR.
  • Void: POST /v3/ecom/auth/void; success is statusId 107; the plugin blocks FPX voids and voids after the order's calendar day.
  • No public refund-initiate endpoint is documented; refunds arrive as callback status 06.
  • In-person statusId/response codes differ from e-commerce codes (for example 102 is VOIDED in Fasstap). Never share one status map across surfaces.
  • Public UAT credentials are embedded in the official plugin (values in references/account-setup.md, sandbox only); production MID and secret come from Fasspay at onboarding.

Critical Rules

  • Keep the Secret Key server-side only. Never call the e-commerce API from a browser or mobile client.
  • Verify the callback signature on the raw request body before JSON parsing, using constant-time comparison.
  • Reject callbacks whose X-Timestamp is more than 300 seconds from server time; reject a missing signature.
  • Check amount, currency, trxRefNo, and environment yourself. The official plugin does not compare callback amount to order total.
  • Generate a new trxRefNo per attempt and store it; ignore non-funds callbacks from superseded attempts.
  • Treat a second funds-moved callback (00, 100, 104, 122) on an already-paid order as a duplicate payment for manual refund or void.
  • Never let a late decline (02, 102) undo a recorded payment.
  • Return HTTP 200 only after the callback is durably recorded; return 401 for bad signatures and 400 for bad JSON.
  • Use UAT and production MID, secret, base URL, and sandboxMode as one set. Do not mix them.
  • Do not copy in-person status codes into e-commerce handlers.

Completion Criteria

A Fasspay integration is done only when:

  1. webInitiateRequest runs server-side with correct envelope, X-Timestamp, and X-Signature.
  2. The customer is redirected to paymentURL; the return page does not fulfil.
  3. backendURL is public HTTPS and verifies X-Signature over raw body plus timestamp.
  4. Settlement checks trxRefNo, statusId, amount, currency, environment, and attempt.
  5. Duplicate callbacks, superseded attempts, and status requery are idempotent.
  6. Tests cover bad signature, stale timestamp, duplicate callback, wrong amount, declined, pending (101, 106, 115), and approved.
  7. Deployment docs list FASSPAY_MID, FASSPAY_SECRET_KEY, FASSPAY_BASE_URL, FASSPAY_SANDBOX, the callback URL, and the return URL.

Loophole Review Loop

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

  1. List trust boundaries: browser return page, Fasspay hosted page, backend initiator, Fasspay API, callback receiver, raw-body reader, database, fulfilment job, void job, admin tooling.
  2. Check bypasses: forged callback, signature over re-encoded JSON, base64-decoded secret, stale or replayed timestamp, UAT/production mix, reused trxRefNo, wrong amount unit, late decline, duplicate capture, FPX void attempt, next-day void, out-of-order attempt callbacks.
  3. Add fixes: raw-body HMAC, constant-time compare, 300 second window, per-attempt trxRefNo, amount in sen check, idempotency key on transactionId|statusId|trxRefNo, requery fallback, separate env config.
  4. Re-read references/fasspay-api.md sections relevant to any gap.
  5. State remaining uncertainty: callback amount unit, checkTransactionStatus response shape, refundAmount unit, meaning of transactionMethod 100 in requests, IP allowlists, rate limits, and anything confirmable only with Fasspay support.

同梱ファイル

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

よくある質問

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

公式のFasspay資料、公式のFasspay for WooCommerceプラグインのソース、Soft Space Developer Portalを参照し、eコマース向けwebInitiateRequestのホステッド決済ページ、HMAC-SHA256によるX-Signatureリクエスト署名、backendURLのコールバック検証、statusIdの処理、checkTransactionStatus、取消、事前承認の売上確定、ホワイトラベルのブランディング、UATと本番環境の違い、対面決済向けFasstap SoftPOS SDK、Fasstap App-to-AppおよびSmart Terminal SDKを扱い、Fasspay(Soft SpaceグループのFass Payment Solutions)の決済連携を設定、構築、デバッグ、レビュー、説明します。FasspayまたはSoft Spaceを使ったMYR建てカード決済(Visa、Mastercard、JCB、MyDebit)、FPX、DuitNow QR、電子ウォレット、スマートフォンのタッチ決済、Android POS端末、コールバック、再照会、取消、本番運用の準備に取り組む際にご利用ください。

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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