Logo Setup Luminarix

Setup Luminarix

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

Set up, build, debug, review, and explain Luminarix payment integrations using official Luminarix sources (the official Luminarix WooCommerce plugin published by Luminarix Sdn. Bhd. on WordPress.org, since no public developer docs exist), the v1 payments API (deposit, transaction-status, refund), hosted checkoutUrl redirect, channel payment instructions, X-Signature HMAC-SHA256 Base64 request checksums, signed callbacks with X-Timestamp and X-Signature, replay protection, per-payment-method Merchant ID, Sub-Merchant ID, Client Secret and Payment System Code, sandbox/live separation, status polling, full and partial refunds, and Cloudflare allowlisting. Use when working with Luminarix (lmnrx.com) Malaysia, FPX, DuitNow QR, cards, Touch 'n Go, GrabPay, Boost, ShopeePay, MAE, WooCommerce Luminarix setup, 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-luminarix
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 Luminarix 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-luminarix
  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-luminarix .claude/skills/setup-luminarix
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 Luminarix 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 Luminarix 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 Luminarix 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.

Luminarix Payment Gateway

Use this skill for Luminarix (Luminarix Sdn. Bhd., https://www.lmnrx.com) payment integration work.

Luminarix publishes no public developer docs (checked 2026-10-21). Every API fact here comes from the official WooCommerce plugin source that Luminarix publishes on WordPress.org (v1.6.0). Treat the plugin as the reference implementation and confirm anything marked "Not documented" with Luminarix onboarding.

Source

Read references/luminarix-api.md before giving factual API guidance or writing integration code. It holds the endpoint catalogue, headers, every request and response field the plugin uses, the exact string-to-sign for each call, callback verification, status values, refunds, retry and rate-limit handling, and the gaps.

Read references/account-setup.md when the user asks how to register, which credentials are needed, sandbox vs live, per-method credentials, env var names, WooCommerce plugin setup, pricing, or settlement.

Read references/source-map.md when choosing which source backs a fact, or to see what was checked and what is not documented.

Core Workflow

  1. Get from Luminarix onboarding: sandbox and live API base URLs, and for each payment method a Payment System Code, Merchant ID, numeric Sub-Merchant ID and Client Secret (sandbox and live sets are separate).
  2. Create a local pending order with the expected amount in MYR.
  3. Generate a fresh orderId for every payment attempt (never reuse one after a failed or abandoned attempt). Store it on the local order before calling the API.
  4. POST {base}/v1/payments/deposit server-side with JSON body and header X-Signature = Base64(HMAC-SHA256(clientSecret, subMerchantId|orderId|amount|currency|returnUrl|callbackUrl)).
  5. Store data.transactionId, then redirect to data.checkoutUrl. If no checkoutUrl is returned, show the payment instructions fields (QR string, virtual account, bank details).
  6. Treat the browser return to returnUrl as UX only. Luminarix appends a query string (orderId, transactionId); check them against stored values, then requery.
  7. On callback, verify X-Signature = Base64(HMAC-SHA256(clientSecret, X-Timestamp + "|" + rawBody)), enforce a timestamp window (plugin default 600 s), dedupe, and reply HTTP 200 {"status":"SUCCESS"}.
  8. Before marking paid, confirm with POST /v1/payments/transaction-status (string-to-sign subMerchantId|transactionId|orderId|amount|currency).
  9. Settle idempotently: SUCCESS is terminal; later PENDING, FAILED or CANCELLED events must not downgrade a paid order.
  10. Poll pending orders as a fallback (plugin: every 5 minutes, up to 72 hours, small batches, backoff on 429).

Core Facts

  • API base URLs are not published; Luminarix supplies sandbox and live base URLs during onboarding.
  • Endpoints (relative to base): POST /v1/payments/deposit, POST /v1/payments/transaction-status, POST /v1/payments/refund.
  • All calls are JSON POSTs with Content-Type: application/json, Accept: application/json and X-Signature. The plugin also sends X-Trace-Id (UUID) and a descriptive User-Agent.
  • Checksum: Base64 of raw HMAC-SHA256 bytes, key = Client Secret, message = fields joined with |. Signatures go in the X-Signature header, not the body (plugin 1.4.1).
  • amount is a string in ringgit with 2 decimals ("10.00"), not sen.
  • Credentials are per payment method: each Payment System Code (for example MYR_TNG) has its own Merchant ID, Sub-Merchant ID and Client Secret. Verify callbacks with the secret of the method and environment that created the order.
  • Response envelope: success (bool), data (object), code, description, errors[].message.
  • Codes seen in the plugin: OK, TRANSACTION_NOT_FOUND, VALIDATION_FAILED, INTERNAL_ERROR, PROVIDER_UNAVAILABLE. HTTP 429 carries Retry-After.
  • Statuses handled: SUCCESS, PENDING, ACCEPTED, APPROVED, FAILED, CANCELLED, REFUNDED (plus aliases the plugin normalises defensively).
  • Refunds: full or partial, signed like a status call with the refund amount; the response returns a separate refund transactionId, and refund status arrives on the same callback URL.
  • The API sits behind Cloudflare. An HTML 403 means the server IP is blocked; ask Luminarix to allowlist it.
  • If a payer object is sent, countryCallingCode is required by the deposit API (plugin 1.6.0 changelog).

Critical Rules

  • Keep the Client Secret server-side only. Never sign in the browser.
  • Verify the callback over the raw request body bytes, before any JSON parsing or sanitising.
  • Use constant-time comparison for signatures and stored references.
  • Reject callbacks whose timestamp is outside your tolerance window, and dedupe on a hash of raw body plus signature.
  • Reject callbacks whose orderId or transactionId does not match what you stored (plugin answers 409).
  • Do not fulfil from the return URL or from a callback status alone; confirm SUCCESS with transaction-status first (plugin 1.5.0 behaviour).
  • Use the exact returnUrl and callbackUrl strings in both the body and the string-to-sign. Keep returnUrl free of an existing query string, because Luminarix appends its own ?.
  • Use a new orderId per attempt, at most 255 characters; the plugin restricts it to [A-Za-z0-9._-].
  • Keep sandbox and live base URLs and credentials separate, and record the environment on each order.
  • Do not invent Payment System Codes or channel codes; get the list from Luminarix.

Completion Criteria

A Luminarix integration is done only when:

  1. Deposit creation runs server-side with a correct X-Signature and a unique orderId saved before the call.
  2. The customer is redirected to checkoutUrl, or instructions are shown when no URL is returned.
  3. The callback handler verifies X-Timestamp and X-Signature over the raw body with the right per-method, per-environment secret, and returns HTTP 200 {"status":"SUCCESS"} for new and duplicate events.
  4. Settlement confirms via transaction-status and checks orderId, transactionId, amount, currency and environment.
  5. Duplicates, out-of-order callbacks, refunds and polling are idempotent, and paid orders never downgrade.
  6. Tests cover bad signature, stale timestamp, replay, reference mismatch, wrong amount, FAILED, CANCELLED, SUCCESS and refund callbacks.
  7. Deployment docs list LUMINARIX_BASE_URL, LUMINARIX_MERCHANT_ID, LUMINARIX_SUB_MERCHANT_ID, LUMINARIX_CLIENT_SECRET, LUMINARIX_PAYMENT_SYSTEM_CODE, the callback URL and the return URL, per environment.

Loophole Review Loop

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

  1. List trust boundaries: browser return, hosted checkout, backend deposit creator, Luminarix API behind Cloudflare, callback receiver, raw-body reader, database, fulfilment job, refund job, polling job, per-method credential store.
  2. Check bypasses: forged return query, forged callback, signature over parsed JSON, wrong method secret, sandbox/live mix, replayed callback, stale timestamp, mismatched orderId or transactionId, wrong amount, reused orderId, late FAILED after SUCCESS, refund callback mistaken for payment, 429 storms, Cloudflare block hiding errors.
  3. Add fixes: raw-body HMAC, constant-time compare, timestamp window, event hash dedupe, reference checks, server-side requery before fulfil, terminal SUCCESS, per-attempt orderId, per-method secrets, backoff with Retry-After, IP allowlisting request.
  4. Re-read references/luminarix-api.md sections relevant to any gap.
  5. State remaining uncertainty: base URLs, Payment System Code list, callback retry policy, timestamp format, sandbox test data, rate limit numbers and error codes are not publicly documented.

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

Set up, build, debug, review, and explain Luminarix payment integrations using official Luminarix sources (the official Luminarix WooCommerce plugin published by Luminarix Sdn. Bhd. on WordPress.org, since no public developer docs exist), the v1 payments API (deposit, transaction-status, refund), hosted checkoutUrl redirect, channel payment instructions, X-Signature HMAC-SHA256 Base64 request checksums, signed callbacks with X-Timestamp and X-Signature, replay protection, per-payment-method Merchant ID, Sub-Merchant ID, Client Secret and Payment System Code, sandbox/live separation, status...

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

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