Logo Setup Ringgitpay

Setup Ringgitpay

Cộng đồng
afu-it
setup-ringgitpay

Set up, build, debug, review, and explain RinggitPay payment integrations using official RinggitPay docs, the RinggitPay Integration and Testing specification, the official RinggitPay for WooCommerce plugin source, and the RinggitPay Direct Debit (e-Mandate) API guide, covering hosted payment page form POST, AppId, RequestKey, ResponseKey, SHA-256 pipe-delimited checksums, APIURL server-to-server direct response, RedirectURL and ReturnURL browser response, transaction enquiry, RP and IR status codes, UAT simulators and test cards, FPX B2C and B2B, cards, payer account verification, and e-mandate DDA/DDI recurring debits. Use when working with RinggitPay Malaysia, ringgitpay.com or ringgitpay.co payment endpoints, FPX, Visa/Mastercard, direct debit, e-mandate, WooCommerce RinggitPay, callback checksum verification, UAT sign-off, or production readiness.

Tổng quan

Nhà phát hànhafu-it
Kho mãmalaysia-payment-gateway
Tên kỹ năngsetup-ringgitpay
Sao
74
Bản fork
11
Tệp đi kèm
4
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 4 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được afu-it công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Setup Ringgitpay trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-ringgitpay
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân 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-ringgitpay .claude/skills/setup-ringgitpay
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Setup Ringgitpay trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Setup Ringgitpay ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Setup Ringgitpay không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

RinggitPay Payment Gateway

Use this skill for RinggitPay (RinggitPay Sdn Bhd, Ascertain Technologies group) payment integration work.

Source

Read references/ringgitpay-api.md before giving factual API guidance or writing integration code. It has the endpoint catalogue, environments, request and response field tables, checksum formulas, status codes, enquiry API, UAT test data, and the Direct Debit (e-Mandate) REST API.

Read references/account-setup.md when the user asks how to register, where AppId/RequestKey/ResponseKey come from, how to set APIURL and RedirectURL, UAT vs production, UAT sign-off, payment methods, settlement timing, or pricing.

Read references/source-map.md to see which source backs which fact, and the source-trust caveat: the integration PDFs are RinggitPay-authored but were found on a third-party GitHub mirror, not on a RinggitPay domain.

Core Workflow

  1. Identify environment: UAT (ringgitpay.co) or production (ringgitpay.com).
  2. Identify surface: hosted payment page (one-off FPX/card payment), WooCommerce plugin, or Direct Debit e-Mandate REST API (recurring).
  3. Confirm with RinggitPay: AppId, RequestKey, ResponseKey, and that APIURL (server-to-server) and RedirectURL (browser) are registered for this AppId. They are configured by RinggitPay, not sent per request (except optional returnURL).
  4. Create a local pending order with a unique orderId (max 20 chars) and the exact amount string (2 decimals) before redirecting.
  5. Compute checkSum = SHA256(appId|currency|amount|orderId|REQUESTKEY) server-side and auto-submit an HTML form POST to /payment.
  6. Treat the RedirectURL/ReturnURL POST as browser UX; verify its checksum but settle from the APIURL direct message or a transaction enquiry.
  7. Verify rp_checkSum = SHA256(rp_appId|rp_currency|rp_amount|rp_statusCode|rp_orderId|rp_transactionRef|RESPONSEKEY) using the raw received values.
  8. Settle idempotently only on RP00 after checksum, AppId, orderId, amount, currency and environment all match. RP09 is pending, never final.
  9. Use POST /transactionenquiry (JSON) for pending, missing or disputed results.

Core Facts

  • Payment request: POST https://ringgitpay.co/payment (UAT), POST https://ringgitpay.com/payment (production). Form POST, name/value pairs.
  • Transaction enquiry: POST https://ringgitpay.co/transactionenquiry (UAT), POST https://ringgitpay.com/transactionenquiry (production). JSON in, JSON out.
  • Request fields: appId, currency (MYR), amount (2 decimals), orderId, checkSum; optional buyerEmail, returnURL (URL-encoded, same domain), accNumber and accBuyerId (payer verification).
  • Response fields are prefixed rp_: rp_appId, rp_currency, rp_amount, rp_statusCode, rp_orderId, rp_transactionRef, rp_txnTime (UTC YYYYMMDDHH24mmSS), rp_paymentMode (FPX, CC, DC, NA), rp_checkSum, rp_remarks, rp_xtraInfo, rp_paymentCountry.
  • Request and enquiry checksums use RequestKey; response checksums use ResponseKey. All are SHA-256 over pipe-joined values with the key appended last.
  • Spec says request checksum must be upper case hex; the official plugin sends lower-case hex and compares responses case-insensitively. Compare case-insensitively.
  • Status RP00 = success, RP09 = pending, IR1x/IR20 = request validation errors, other RPxx = failures (full table in the API reference).
  • RinggitPay sends a DIRECT message (host-to-host to APIURL) and an INDIRECT message (browser form POST to RedirectURL, or ReturnURL if sent).
  • Only MYR is supported (official plugin FAQ).
  • FPX limits: retail B2C RM1.00 to RM30,000.00; corporate B2B RM2.00 to RM1,000,000.00. B2B stays RP09 until the corporate authoriser acts.
  • Direct Debit API: base https://bills2u-api.ringgitpay.co (UAT) / https://bills2u-api.ringgitpay.biz (production), OAuth2 token from https://identity.ringgitpay.{co|biz}/connect/token, paths under /api/v1/mandate/....
  • Refund, void, capture, payout and settlement-report APIs: not documented in any official source found (checked 2026-10-21).

Critical Rules

  • Keep RequestKey, ResponseKey and DD API client secret/password server-side only; never compute checksums in the browser.
  • Verify the response checksum over the received string values exactly (do not reformat rp_amount); do not include rp_xtraInfo, rp_remarks or rp_paymentMode in it.
  • Do not mark paid from the RedirectURL/ReturnURL alone; the spec calls browser redirection not 100% reliable.
  • A checksum mismatch means "ignore and log", not "mark order failed" (the official plugin marks it failed, which lets a forged POST fail real orders).
  • Check rp_amount and rp_currency against the stored order; the official plugin does not, so add it.
  • Treat RP09 as non-final and re-check with transaction enquiry; deferred updates also arrive at APIURL.
  • Keep orderId unique per attempt (RP45 = duplicate seller order number) and within 20 chars.
  • APIURL and RedirectURL must not contain an IP address or port number (UAT sign-off rule).
  • Use UAT keys with ringgitpay.co and production keys with ringgitpay.com; never mix.

Completion Criteria

A RinggitPay integration is done only when:

  1. Payment form and checksum are generated server-side from a stored pending order.
  2. APIURL handler verifies rp_checkSum with ResponseKey, checks AppId, orderId, amount, currency, and returns HTTP 200.
  3. Settlement on RP00 is idempotent across APIURL, RedirectURL and enquiry results.
  4. RP09 orders are re-checked via transaction enquiry and later APIURL updates.
  5. Tests cover bad checksum, wrong amount, wrong currency, unknown orderId, duplicate notification, RP09 then RP00, failure codes, and enquiry with and without transactionRef.
  6. UAT sign-off checklist items are captured (FPX SBI Bank A/B, card success/failure, receipt, redirect and API logs, enquiry log, email).
  7. Deployment docs list RINGGITPAY_APP_ID, RINGGITPAY_REQUEST_KEY, RINGGITPAY_RESPONSE_KEY, RINGGITPAY_ENV, and the APIURL/RedirectURL registered with RinggitPay per environment.

Loophole Review Loop

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

  1. List trust boundaries: checkout page, auto-submit form, RinggitPay payment page, FPX/card channel, RedirectURL/ReturnURL browser POST, APIURL server POST, enquiry API, database, fulfilment job, RinggitPay portal settings.
  2. Check bypasses: forged browser POST, forged APIURL POST, checksum over reformatted amount, wrong key (RequestKey vs ResponseKey), case-sensitive hex compare, UAT/production key mix, wrong amount or currency, reused orderId, RP09 treated as final or as failed, missing APIURL registration, ReturnURL on another domain, duplicate notifications, enquiry checksum without the empty transactionRef slot.
  3. Add fixes: server-side checksum, constant-time case-insensitive compare, strict order matching, durable notification log, idempotent settlement, enquiry fallback, per-environment config.
  4. Re-read references/ringgitpay-api.md sections relevant to any gap.
  5. State remaining uncertainty: undocumented retry policy, no published IP allowlist, no refund API, and PDF versions newer than v1.13 (status codes "are regularly updated"). Ask RinggitPay for the latest spec.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Setup Ringgitpay làm được gì?

Set up, build, debug, review, and explain RinggitPay payment integrations using official RinggitPay docs, the RinggitPay Integration and Testing specification, the official RinggitPay for WooCommerce plugin source, and the RinggitPay Direct Debit (e-Mandate) API guide, covering hosted payment page form POST, AppId, RequestKey, ResponseKey, SHA-256 pipe-delimited checksums, APIURL server-to-server direct response, RedirectURL and ReturnURL browser response, transaction enquiry, RP and IR status codes, UAT simulators and test cards, FPX B2C and B2B, cards, payer account verification, and e-ma...

Vì sao nên dùng Setup Ringgitpay trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Setup Ringgitpay là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Setup Ringgitpay trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-ringgitpay. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Setup Ringgitpay?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Setup Ringgitpay với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Setup Ringgitpay với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Setup Ringgitpay có miễn phí không?

Kỹ năng này được afu-it phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇