Logo Setup Eghl

Setup Eghl

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

Set up, build, debug, review, and explain eGHL (now ADAPTIS by NTT DATA Payment Services) payment integrations using official eGHL/ADAPTIS sources, the Payment.aspx hosted payment page, SALE/AUTH requests, SHA-256 HashValue and HashValue2 checks, MerchantReturnURL and MerchantCallBackURL handling, the "OK" callback acknowledgement, QUERY status requery, REFUND, RSALE reversal, CAPTURE, test vs live URLs, Merchant Service ID and Merchant Password setup, and official plugins. Use when working with eGHL, GHL ePayments, ADAPTIS, NTT DATA ePayments Malaysia, FPX/direct debit, cards, e-wallets, PymtMethod ANY/CC/DD/WA, TxnStatus codes, callback settlement, refunds, or production readiness.

Tổng quan

Nhà phát hànhafu-it
Kho mãmalaysia-payment-gateway
Tên kỹ năngsetup-eghl
Sao
74
Bản fork
11
Tệp đi kèm
5
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ộ.

  • 5 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 Eghl 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-eghl
  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-eghl .claude/skills/setup-eghl
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 Eghl 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 Eghl 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 Eghl 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.

eGHL / ADAPTIS Payment Gateway

Use this skill for eGHL payment gateway integration work. eGHL is now branded ADAPTIS by NTT DATA Payment Services; the API, hosts, and field names are still the eGHL ones.

Source

Read references/eghl-api.md before giving factual API guidance or writing integration code. It contains the endpoint catalogue, payment URLs, request and response field tables, the exact hash string orders, return vs callback handling, Query/Refund/Reversal/Capture/Settle/SOPBL, amount rules, and gotchas.

Read references/eghl-codes.md for enums: TransactionType, PymtMethod, TxnStatus, TokenType, currencies, data types, acknowledgement bodies, and validator error messages.

Read references/account-setup.md when the user asks how to register, which credentials are needed, where they come from, test vs live, the ADAPTIS rebrand, plugins, pricing, or downtime notices.

Read references/source-map.md when choosing which official source (Bitbucket SDK, plugin, guide PDF, NTT DATA page) backs a fact.

The full eGHL Merchant API specification is distributed to merchants and is not published openly. Facts here come from eGHL's official public Bitbucket SDKs and plugins. When a detail is not in those sources, say so and tell the user to confirm with their account manager.

Core Workflow

  1. Identify environment: test (pay.e-ghl.com) or live (securepay.e-ghl.com).
  2. Confirm credentials: Merchant Service ID (ServiceID, 3 chars) and Merchant Password, issued by eGHL/ADAPTIS.
  3. Create a local pending payment with a unique PaymentID (max 20 chars) and your OrderNumber.
  4. Build the SALE request server-side and compute HashValue = SHA-256 over password + the SALE fields in the documented order.
  5. Send the browser to Payment.aspx with an auto-submitting HTML form (POST).
  6. Handle MerchantCallBackURL (server to server): verify HashValue2, settle idempotently, reply with the plain text OK.
  7. Handle MerchantReturnURL (browser): verify HashValue2, show the result; settle only if the callback has not already done so, using the same idempotent code.
  8. For TxnStatus=2 (pending) or a missing callback, requery with TransactionType=QUERY and verify the response HashValue.
  9. Refund (cards only), reverse (RSALE), or capture (AUTH then CAPTURE) through the same Payment.aspx endpoint with a signed server-side POST.

Core Facts

  • Live payment URL: https://securepay.e-ghl.com/IPG/Payment.aspx.
  • Test payment URL: https://pay.e-ghl.com/IPGSG/payment.aspx.
  • Query, Refund, Reversal, and Capture are server-side form POSTs to the same URL; the response is a URL-encoded string.
  • Hash algorithm: lowercase hex sha256(MerchantPassword + field1 + field2 + ...), no separators, missing optional fields contribute an empty string.
  • SALE HashValue order: ServiceID, PaymentID, MerchantReturnURL, MerchantApprovalURL, MerchantUnApprovalURL, MerchantCallBackURL, Amount, CurrencyCode, CustIP, PageTimeout, CardNo, Token.
  • Payment response HashValue2 order: TxnID, ServiceID, PaymentID, TxnStatus, Amount, CurrencyCode, AuthCode, OrderNumber, Param6, Param7.
  • Query/Refund/Reversal/Capture request hash order: ServiceID, PaymentID, Amount, CurrencyCode.
  • API response HashValue order: TxnID, ServiceID, PaymentID, TxnStatus, Amount, CurrencyCode, AuthCode.
  • TxnStatus: 0 success, 1 failed, 2 pending; Query adds 9 reversed, 10 refunded, 15 authorised, 16 captured, 31 reversal pending, -1 not found, -2 system error.
  • TxnStatus=1 with TxnMessage Buyer cancelled means the shopper cancelled.
  • Amount is ringgit (major unit) with exactly 2 decimals and no commas, for example 10.00.
  • URLs inside request fields use ; instead of & in query strings.
  • Callback must answer with the body OK.
  • PymtMethod values used in official plugins: ANY, CC (card), DD (direct debit / online banking), WA (e-wallet).
  • Online refund is supported only for PymtMethod=CC; partial refund allowed up to the original amount.

Critical Rules

  • Keep the Merchant Password server-side only; never compute hashes in the browser.
  • Do not mark paid from the return URL alone without verifying HashValue2, and never trust TxnStatus from an unverified request.
  • Compare hashes in constant time, case-insensitively (official plugins use case-insensitive compare).
  • Before settling, check ServiceID, PaymentID, OrderNumber, Amount, CurrencyCode, and TransactionType against your stored pending payment.
  • Make settlement idempotent: callback and return can both arrive, and callbacks can repeat. A late failed must not overwrite a paid order.
  • Use a fresh unique PaymentID per attempt. Official plugins resend the same OrderNumber on retries of one order, but keep OrderNumber unique per order across every store sharing a Service ID (WooCommerce: "ADAPTIS will not allow orders with the same invoice number").
  • Load the Merchant Password from server config only. The official PrestaShop 1.6 handler accepts a password from the request; do not copy it.
  • Reject a response whose CurrencyCode differs from the order unless your account uses shopper currency choice (then see Multi-Currency in references/eghl-api.md).
  • Use the password and URL for the same environment; test and live credentials are different.
  • Treat pending (2) as unresolved; requery later instead of failing the order.
  • Do not invent other endpoints (REST, JSON, webhooks with headers). None are in the official public sources. Do not build SETTLE, SOP, SOP2, or SOPCARD without the merchant API spec; only partial details are public.

Completion Criteria

An eGHL integration is done only when:

  1. SALE request and HashValue are built server-side with correct field order, 2-decimal amount, and ;-escaped URLs.
  2. Callback handler verifies HashValue2, settles idempotently, and responds OK.
  3. Return handler verifies HashValue2 and shares the same settlement code.
  4. Amount, currency, PaymentID, OrderNumber, and ServiceID match the stored payment before marking paid.
  5. Pending and missing-callback cases use QUERY with response HashValue verification.
  6. Tests cover bad hash, duplicate callback, wrong amount/currency, buyer cancelled, pending then success, and success.
  7. Deployment docs list EGHL_SERVICE_ID, EGHL_MERCHANT_PASSWORD, EGHL_PAYMENT_URL, return URL, callback URL, and test/live separation.

Loophole Review Loop

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

  1. List trust boundaries: browser form post, return URL, callback URL, hash builder, Payment.aspx, query job, refund job, database, fulfilment.
  2. Check bypasses: forged return post, hash over wrong field order, unescaped & in URLs, amount formatting mismatch (10 vs 10.00), test/live password mix, reused PaymentID, duplicate callback, late failed after success, pending treated as failed, refund on non-card method, reversal after bank settlement.
  3. Add fixes: server-side hashing, strict field matching, idempotent state machine, QUERY fallback with hash check, environment-separated config, OK acknowledgement only after durable write.
  4. Re-read references/eghl-api.md sections relevant to any gap.
  5. State remaining uncertainty: anything only in the private API spec (callback retry schedule, IP allowlist, full error code list, recurring/tokenisation details, sandbox test cards) must be confirmed with eGHL/ADAPTIS support.

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 Eghl làm được gì?

Set up, build, debug, review, and explain eGHL (now ADAPTIS by NTT DATA Payment Services) payment integrations using official eGHL/ADAPTIS sources, the Payment.aspx hosted payment page, SALE/AUTH requests, SHA-256 HashValue and HashValue2 checks, MerchantReturnURL and MerchantCallBackURL handling, the "OK" callback acknowledgement, QUERY status requery, REFUND, RSALE reversal, CAPTURE, test vs live URLs, Merchant Service ID and Merchant Password setup, and official plugins. Use when working with eGHL, GHL ePayments, ADAPTIS, NTT DATA ePayments Malaysia, FPX/direct debit, cards, e-wallets, P...

Vì sao nên dùng Setup Eghl 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 Eghl 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 Eghl 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-eghl. 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 Eghl?

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 Eghl 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 Eghl 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 Eghl 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 👇