Logo vun Setup Luminarix

Setup Luminarix

Communautéit
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.

Iwwersiicht

Editeurafu-it
Repositorymalaysia-payment-gateway
Skill-Nummsetup-luminarix
Stären
74
Forks
11
Matgeliwwert Fichieren
4
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum afu-it op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Setup Luminarix an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-luminarix
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Setup Luminarix an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Setup Luminarix automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Setup Luminarix net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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...

Firwat Setup Luminarix op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Setup Luminarix besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Setup Luminarix an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-luminarix an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Setup Luminarix benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Setup Luminarix benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Setup Luminarix domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Setup Luminarix gratis?

De Skill gëtt vum afu-it op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇