Setup Ipay88 标志

Setup Ipay88

社区
afu-it
setup-ipay88

使用 iPay88 自有的 OPSG Technical Specification v1.6.4.4 和官方 iPay88 signature tester,设置、构建、调试、审查并说明 iPay88 Malaysia 支付集成,涵盖 ePayment 的 entry.asp 重定向 POST、HMAC-SHA512 请求和响应签名、SignatureType、ResponseURL 与 BackendURL 的处理、RECEIVEOK 确认、enquiry.asp 重新查询、TxDetailsInquiry SOAP Web 服务重新查询、PaymentId 值、Status 代码、错误消息、电子钱包的 Appdeeplink,以及 Merchant Code/Merchant Key 设置。适用于 iPay88(现以 NTT DATA Payment Services Malaysia 名义运营)、FPX、银行卡、Boost、Touch 'n Go、ShopeePay、从 SHA256 迁移到 HMAC-SHA512、签名不匹配错误、后端 POST 重试或生产环境就绪等工作。

Add to TypingMind

概览

发布者afu-it
代码仓库malaysia-payment-gateway
技能名称setup-ipay88
星标数
74
复刻数
11
附带文件
4
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 4 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 afu-it 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Setup Ipay88 AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-ipay88
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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-ipay88 .claude/skills/setup-ipay88
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Setup Ipay88,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Setup Ipay88。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Setup Ipay88 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

iPay88 Malaysia Payment Gateway

Use this skill for iPay88 Malaysia (OPSG, "Online Payment Switching Gateway") integration work.

Source

iPay88 does not publish its developer docs on an iPay88 domain. This skill is built from iPay88's own Technical Specification v1.6.4.4 (11 Sep 2024), obtained from a community mirror, plus official pages on payment.ipay88.com.my (signature tester, webservice WSDL) and iPay88's archived support FAQ. Where the mirror and an official page differ, the official page wins. Merchants receive the current spec from iPay88 Support; confirm against it.

Read references/ipay88-api.md before giving factual API guidance or writing integration code. It has the endpoint catalogue, every request/response field, the HMAC-SHA512 string-to-sign for request and response, the Xfield1 open question, backend post and RECEIVEOK rules, both re-query forms, status values and error messages.

Read references/account-setup.md for merchant onboarding, the Merchant Checklist, Request URL registration, IP whitelisting, test amounts, go-live notice, report login, env var names and payment method activation.

Read references/source-map.md to see which source backs which fact and what is not documented.

Core Workflow

  1. Confirm iPay88 has issued the Merchant Code and Merchant Key, registered the Request URL, and whitelisted the server IPs for ResponseURL and BackendURL.
  2. Create a local pending order with a unique RefNo (max 30 chars), the expected amount and MYR.
  3. Build the HMAC-SHA512 request Signature server-side, keyed with the Merchant Key.
  4. Render an auto-submitting HTML form that POSTs to https://payment.ipay88.com.my/epayment/entry.asp with every request field present (optional fields may be empty but must exist).
  5. On ResponseURL (browser POST): verify Signature, amount, currency and RefNo; show the result page. Treat it as UX plus a settlement path, never as trusted input without verification.
  6. On BackendURL (server POST, success only): verify the same way, settle idempotently, then print exactly RECEIVEOK with no HTML.
  7. Before fulfilment, or when no post arrives, re-query enquiry.asp (reply 00 = paid) or the SOAP webservice (Version 4, Status 1 = paid).
  8. Settle once, whichever of ResponseURL, BackendURL or re-query arrives first.

Core Facts

  • Payment page: POST https://payment.ipay88.com.my/epayment/entry.asp (HTML form post, not a JSON API).
  • Re-query: https://payment.ipay88.com.my/epayment/enquiry.asp with MerchantCode, RefNo, Amount; plain-text reply.
  • Webservice requery: https://payment.ipay88.com.my/epayment/webservice/TxInquiryCardDetails/TxDetailsInquiry.asmx, operation TxDetailsInquiryCardInfo, Version = 4. SOAPAction "https://www.mobile88.com/epayment/webservice/TxDetailsInquiryCardInfo" (official WSDL); a plain form POST to .../TxDetailsInquiry.asmx/TxDetailsInquiryCardInfo also works.
  • No separate sandbox host is documented. Testing runs on the production host with a real merchant account, from the registered Request URL, using MYR 1.00.
  • SignatureType = HMACSHA512. iPay88 moved from SHA256 to HMAC-SHA512 in spec v1.6.4.4; SHA256 integrations are deprecated.
  • Request signature (official tester): HMAC_SHA512(key=MerchantKey, MerchantKey + MerchantCode + RefNo + Amount + Currency), Amount with "." and "," removed, lowercase hex, 128 chars.
  • The spec also appends Xfield1 to the request string. With an empty Xfield1 both forms are identical. See the open question in references/ipay88-api.md.
  • Response signature: HMAC_SHA512(key=MerchantKey, MerchantKey + MerchantCode + PaymentId + RefNo + Amount + Currency + Status).
  • Response Status: 1 success, 0 fail. Webservice requery adds 6 pending and 20 authorised; an unknown RefNo returns empty Status with Errdesc Record not found.
  • BackendURL receives success only; iPay88 posts to ResponseURL and BackendURL at the same time; retries backend up to 3 times without RECEIVEOK.
  • PaymentId is optional; blank lets the customer choose on the iPay88 page. Numeric values are in iPay88's separate "Appendix I.pdf" (MYR) and "Appendix II.pdf" (multi-currency), issued by iPay88 Support.
  • Refunds, recurring and tokenisation: sold as products, but no public API. The WSDL shows refund, capture and token fields on requery results only.
  • Support: support@ipay88.com.my. Merchant report: https://payment.ipay88.com.my/ePayment/report.

Critical Rules

  • Keep the Merchant Key server-side only; never put it in browser code, even though the signature is posted from the browser.
  • Compute the signature over the exact Amount string you post (for example 1,278.99 becomes 127899).
  • Verify the response Signature with a constant-time compare; also compare Amount, Currency, RefNo and MerchantCode with the local order.
  • Never fulfil from ResponseURL alone without signature and amount checks; the browser can be tampered with or closed.
  • The backend page must not depend on session or login state, and must output only RECEIVEOK after a successful update.
  • Make settlement idempotent across ResponseURL, BackendURL and re-query; both posts arrive at once.
  • Do not reuse a RefNo that was already paid ("Duplicate reference number").
  • No backend post on failure: handle failed and abandoned payments with ResponseURL and re-query.
  • For Appdeeplink (mobile app to e-wallet), no response data returns to the app; use the webservice requery and BackendURL.
  • Use HTTP_REFERER from https://payment.ipay88.com.my only as an extra check, never as proof.

Completion Criteria

An iPay88 integration is done only when:

  1. The request form posts every field, with SignatureType=HMACSHA512 and a signature that matches the official tester page.
  2. ResponseURL and BackendURL both verify the response signature, amount, currency and RefNo.
  3. BackendURL prints only RECEIVEOK after a durable update and has no session code.
  4. Settlement is idempotent across both posts and re-query.
  5. A re-query (enquiry.asp or webservice) runs before fulfilment or as fallback for missing posts.
  6. Tests cover bad signature, wrong amount, duplicate posts, Status=0, re-query Record not found/Incorrect amount, and a paid MYR 1.00 test.
  7. Deployment docs list IPAY88_MERCHANT_CODE, IPAY88_MERCHANT_KEY, ResponseURL, BackendURL, and the IPs whitelisted with iPay88.

Loophole Review Loop

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

  1. List trust boundaries: checkout page, browser form post, iPay88 payment page, bank/e-wallet, ResponseURL, BackendURL, re-query call, database, fulfilment job.
  2. Check bypasses: forged ResponseURL post, replayed success post, amount edited in the form, signature built over a different amount format, Xfield1 mismatch, SHA256 left in place, duplicate RefNo, backend post and response post racing, missing RECEIVEOK causing retries, session-dependent backend page, failed payment never posted to backend, e-wallet deeplink with no response data, pending (6) treated as paid.
  3. Add fixes: server-side signing, signature and amount checks on both URLs, constant-time compare, unique RefNo, row lock or unique constraint on settlement, re-query before fulfilment, plain RECEIVEOK, sessionless backend route.
  4. Re-read references/ipay88-api.md sections relevant to any gap.
  5. State remaining uncertainty: the spec came from a mirror, the Xfield1 rule, PaymentId values, refund and recurring products, and anything only iPay88 Support can confirm.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Setup Ipay88 AI 技能有什么作用?

使用 iPay88 自有的 OPSG Technical Specification v1.6.4.4 和官方 iPay88 signature tester,设置、构建、调试、审查并说明 iPay88 Malaysia 支付集成,涵盖 ePayment 的 entry.asp 重定向 POST、HMAC-SHA512 请求和响应签名、SignatureType、ResponseURL 与 BackendURL 的处理、RECEIVEOK 确认、enquiry.asp 重新查询、TxDetailsInquiry SOAP Web 服务重新查询、PaymentId 值、Status 代码、错误消息、电子钱包的 Appdeeplink,以及 Merchant Code/Merchant Key 设置。适用于 iPay88(现以 NTT DATA Payment Services Malaysia 名义运营)、FPX、银行卡、Boost、Touch 'n Go、ShopeePay、从 SHA256 迁移到 HMAC-SHA512、签名不匹配错误、后端 POST 重试或生产环境就绪等工作。

为什么在 TypingMind 中使用 Setup Ipay88?

因为您只需安装一次,就能搭配任何模型使用。Setup Ipay88 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Setup Ipay88?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-ipay88。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Setup Ipay88?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Setup Ipay88 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Setup Ipay88 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Setup Ipay88 AI 技能免费吗?

afu-it 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇