Логотип Setup Riipay

Setup Riipay

Спільнота
afu-it
setup-riipay

Set up, build, debug, review, and explain Riipay payment integrations using official Riipay docs, the Riipay developer guide, the official Riipay for WooCommerce plugin source, GET redirect payment requests, return URL and server-to-server callbacks, MD5 request and response signatures, transaction requery, merchant portal setup, staging and production environments, status codes F/A/S, and error codes. Use when working with Riipay Malaysia, Buy Now Pay Later, 3-month 0% instalments with debit or credit cards, Riipay checkout redirects, callback verification, requery, WooCommerce, or production readiness.

Огляд

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

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

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

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

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

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

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

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

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

Установіть навичку ШІ Setup Riipay у 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-riipay
  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-riipay .claude/skills/setup-riipay
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

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

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

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

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

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

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

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

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

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

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

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

Riipay Payment Gateway

Use this skill for Riipay (Malaysian BNPL, 0% instalments on debit or credit card) integration work.

Source

Read references/riipay-api.md before giving factual API guidance or writing integration code. It holds the endpoint catalogue, environments, payment request fields, request/response/query signature algorithms with verified sample values, return vs callback behaviour, status and error codes, requery, rate limit, and documented gaps.

Read references/account-setup.md when the user asks how to register as a merchant, where the Merchant Code and Secret Key live, staging vs production portals, return/callback URL settings, refunds, pricing, settlement, or the WooCommerce plugin.

Read references/source-map.md when choosing which official page or plugin file backs a fact, or to see what was checked and not found.

Core Workflow

  1. Identify environment: staging (https://secure.uat.riipay.my) or production (https://secure.riipay.my).
  2. Identify surface: custom API redirect, WooCommerce plugin, or another e-commerce platform plugin (ask Riipay; only WooCommerce source is public).
  3. Confirm merchant portal profile: Merchant Code, Secret Key, Return URL, Callback URL, Callback Method (GET, POST form, or POST JSON; default POST JSON), bank account.
  4. Create a local pending payment with a unique reference, amount in ringgit as a 2-decimal string, and currency MYR.
  5. Build the MD5 request signature server-side, then redirect the browser with a GET to {BASE_URL}/v1/payment?... (URL-encode every value).
  6. On return (browser GET) and callback (server-to-server), verify the MD5 response signature using your stored merchant code, secret key, reference, currency, and expected amount.
  7. Fulfil only on status S. Treat A as pending (on hold). Treat F as failed, but check error_code (for example 410 customer cancel) before closing the order.
  8. Store transaction_reference from the first verified response; use GET /v1/query/transaction (max 2 queries per second) to confirm A or missing callbacks.
  9. Settle idempotently: one transition to paid per local payment, keyed on reference plus transaction_reference.

Core Facts

  • Payment request: GET {BASE_URL}/v1/payment with query parameters; the customer is redirected to the Riipay hosted page.
  • Requery: GET {BASE_URL}/v1/query/transaction with merchant_code, transaction_reference, signature; returns the payment response fields as JSON.
  • Request signature: md5(merchant_code + secret_key + reference + currency_code + amount).
  • Response signature: md5(merchant_code + secret_key + reference + currency_code + amount + transaction_reference + status_code).
  • Query signature: md5(merchant_code + secret_key + transaction_reference).
  • amount is ringgit with exactly 2 decimals, no thousand separator (1234.00), minimum 1.00. Re-format the response amount before hashing (JSON callbacks may send 1234).
  • Status codes: F failed, A accepted and under process, S success.
  • Callbacks are sent only for transactions that reached a gateway result (success or failed). Customer cancel or invalid signature produce only a browser return, no callback.
  • Return is always a browser GET with query parameters and may never arrive.
  • return_url and callback_url per request override the portal defaults; they are not covered by the signature.
  • Merchant portals: production https://merchant.riipay.my, staging https://merchant.uat.riipay.my.
  • The official WooCommerce plugin supports MYR only and defaults the maximum order amount to RM1000, stating Riipay rejects orders above RM1000 "until further notice". Confirm the current limit with Riipay.
  • No refund, cancel, capture, recurring, or tokenisation API is documented. Refunds follow the merchant's policy (merchant FAQ).
  • No sandbox test cards, IP allowlist, or callback retry policy are published.

Critical Rules

  • Keep the Secret Key server-side only. The request URL passes through the browser, so never put the key in it, only the signature.
  • Never mark paid from the browser return alone without verifying the response signature, and prefer callback or requery confirmation before shipping.
  • Verify every response signature, including F, with a constant-time compare on the lowercase hex MD5.
  • Hash with your stored expected amount for that reference, not a value you trust from the response; a mismatch then fails closed.
  • Do not trust status_message, error_message, description, or transaction_datetime; they are outside the signature.
  • Check merchant_code and currency_code in the response equal your configured values.
  • Treat A as not paid. Only S fulfils.
  • Do not mark an order failed on F with error codes the official plugin skips (400, 401, 402, 404, 409, 410, 412, 429, 500 to 504); let the customer retry.
  • Respect the 2 queries per second requery rate limit; back off and do not poll in tight loops.
  • Use separate Merchant Code, Secret Key, portal settings, and URLs for staging and production.

Completion Criteria

A Riipay integration is done only when:

  1. The payment request URL is built server-side with a correct MD5 request signature and URL-encoded values.
  2. A local pending payment with unique reference, expected amount, and currency exists before redirect.
  3. Return and callback handlers accept the configured callback method (GET, POST form, or POST JSON) and verify the response signature.
  4. Settlement checks merchant code, reference, currency, amount, transaction_reference, and status S.
  5. A results are confirmed later by callback or requery; duplicate callbacks and returns are idempotent.
  6. Tests cover invalid signature, wrong amount, wrong reference, F with skip codes, 410 cancel, A then S, and duplicate callbacks.
  7. Deployment docs list RIIPAY_MERCHANT_CODE, RIIPAY_SECRET_KEY, RIIPAY_BASE_URL, return URL, callback URL, and the portal callback method.

Loophole Review Loop

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

  1. List trust boundaries: browser redirect URL, Riipay hosted page, return URL handler, callback handler, requery client, database, fulfilment job, merchant portal settings.
  2. Check bypasses: forged return query string, tampered amount in the request URL, signature computed over response amount, A treated as paid, missing callback for cancel, lost return, duplicate callback, staging key in production, overridden callback_url, requery rate limit hit, order above the plugin RM1000 limit.
  3. Add fixes: server-side signature, local expected amount in hash, constant-time compare, strict status S, stored transaction_reference, requery fallback with back-off, idempotent settlement, environment-specific config.
  4. Re-read references/riipay-api.md sections relevant to any gap.
  5. State remaining uncertainty: callback retry policy, expected callback HTTP response, refund handling, reference reuse after failure, current order limits, and fees are not documented publicly.

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

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

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

Що робить навичка ШІ Setup Riipay?

Set up, build, debug, review, and explain Riipay payment integrations using official Riipay docs, the Riipay developer guide, the official Riipay for WooCommerce plugin source, GET redirect payment requests, return URL and server-to-server callbacks, MD5 request and response signatures, transaction requery, merchant portal setup, staging and production environments, status codes F/A/S, and error codes. Use when working with Riipay Malaysia, Buy Now Pay Later, 3-month 0% instalments with debit or credit cards, Riipay checkout redirects, callback verification, requery, WooCommerce, or product...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Усі

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

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