Логотип Setup Luminarix

Setup Luminarix

Спільнота
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.

Огляд

Видавецьafu-it
Репозиторійmalaysia-payment-gateway
Назва навичкиsetup-luminarix
Зірки
74
Форки
11
Файли в пакеті
4
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 4

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем afu-it. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Setup Luminarix у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-luminarix
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте 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-luminarix .claude/skills/setup-luminarix
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Setup Luminarix в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Setup Luminarix, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Setup Luminarix не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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...

Навіщо використовувати Setup Luminarix у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Setup Luminarix — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Setup Luminarix у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-luminarix. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Setup Luminarix?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Setup Luminarix?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Setup Luminarix — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Setup Luminarix?

Навичку опубліковано на GitHub: afu-it. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇