Logotipo de Setup Revenue Monster

Setup Revenue Monster

Comunidad
afu-it
setup-revenue-monster

Configura, desarrolla, depura, revisa y explica integraciones de pago con Revenue Monster usando la documentación y los SDK oficiales de Revenue Monster, credenciales de cliente OAuth 2.0, firmas de solicitud RSA SHA256 (X-Signature, X-Nonce-Str, X-Timestamp), checkout Web Payment alojado (v3/payment/online), Direct Payment Checkout, callbacks de notify URL, gestión de redirecciones, consulta de transacciones por ID de pedido, reembolso, reversión, conciliación, tokenización, pagos recurrentes, configuración de sandbox/producción y credenciales de Merchant Portal. Úsalo al trabajar con Revenue Monster (RM) Malaysia, FPX, DuitNow QR, tarjetas, Apple Pay, Google Pay, TNG, Boost, GrabPay, ShopeePay, Alipay+, WeChat Pay, redirecciones al checkout, liquidaciones mediante notify, errores INVALID_REQUEST_SIGNATURE, reembolsos o preparación para producción.

Add to TypingMind

Descripción general

Editorafu-it
Repositoriomalaysia-payment-gateway
Nombre de la habilidadsetup-revenue-monster
Estrellas
74
Forks
11
Archivos incluidos
9
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 9

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por afu-it en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Setup Revenue Monster en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-revenue-monster
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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-revenue-monster .claude/skills/setup-revenue-monster
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Setup Revenue Monster en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Setup Revenue Monster automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Setup Revenue Monster no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Revenue Monster Payment Gateway

Use this skill for Revenue Monster (RM) Open API payment integration work.

Source

Read references/revenue-monster-api.md before giving factual API guidance or writing integration code. It contains environments, OAuth token flow, the RSA signature algorithm with exact string-to-sign, hosted checkout fields, redirect and notify payloads, query, refund, reverse, reconciliation, methods, statuses, and error codes.

It also holds the Endpoint Catalogue (every documented operation) and points to the detail files:

  • references/revenue-monster-objects.md: Transaction Object, nested objects, type/status enums, method and region matrix, FPX B2C/B2B bank codes.
  • references/revenue-monster-tokenization.md: recurring, tokenized customer, charge bound card, card-on-file tokens.
  • references/revenue-monster-instore.md: Quick Pay, terminal events, POS, Android deeplink.
  • references/revenue-monster-invoice.md: invoice / payment link API (/api/v3/...).
  • references/revenue-monster-errors.md: every documented error code.

Read references/account-setup.md when the user asks how to register, where Client ID / Client Secret / Store ID / RSA keys live, sandbox activation, payment method activation, env var names, pricing, or plugins.

Read references/source-map.md when choosing which official RM docs page or SDK file applies.

Core Workflow

  1. Identify environment: sandbox (sb-oauth, sb-open) or production (oauth, open).
  2. Identify integration surface: hosted Web Payment checkout, Mobile Payment, Direct Payment Checkout (own UI, QR, FPX bank, card native), Quick Pay (POS scan), tokenization/recurring, low-code button, or plugin.
  3. Confirm Merchant Portal setup: application Client ID and Client Secret, your RSA public key uploaded, RM server public key saved, Store ID, and activated payment methods.
  4. Get an access token server-side with POST /v1/token (Basic auth of clientId:clientSecret, grantType: client_credentials); cache it and refresh before expiry.
  5. Create a local pending payment with a unique order.id (max 24 chars) and amount in sen before calling RM.
  6. Call POST /v3/payment/online with Bearer token plus X-Signature, X-Nonce-Str, X-Timestamp; redirect the customer to item.url.
  7. Treat redirectUrl (?status=&orderId=) as browser UX only.
  8. On notify (eventType: PAYMENT_WEB_ONLINE), record the payload, then requery GET /v3/payment/transaction/order/{orderId} with a signed request.
  9. Settle idempotently only when the queried transaction is SUCCESS and order.id, order.amount, currencyType, store, and environment match.
  10. Run a requery job for pending orders, because notify fires only on success and may be missed.

Core Facts

  • OAuth: https://oauth.revenuemonster.my/v1/token; sandbox https://sb-oauth.revenuemonster.my/v1/token.
  • Open API: https://open.revenuemonster.my; sandbox https://sb-open.revenuemonster.my. Payment APIs are under /v3.
  • Hosted checkout: POST /v3/payment/online, type WEB_PAYMENT or MOBILE_PAYMENT, layoutVersion v4.
  • Amounts are integers in sen (100 = RM 1.00); minimum RM 0.10; currency MYR only.
  • Signature: RSA PKCS#1 v1.5 with SHA-256 over data=<b64>&method=<lower>&nonceStr=<n>&requestUrl=<url>&signType=sha256&timestamp=<unix>, where <b64> is Base64 of key-sorted, compact JSON with <, >, & escaped as \u003c, \u003e, \u0026.
  • Header format: X-Signature: sha256 <base64signature>. Nonce must be unique for 120 seconds; timestamp is UTC Unix seconds within 120 seconds of server time.
  • Empty body (GET): omit the data= pair. Verifying RM's callback: requestUrl can be skipped; verify with the RM server public key.
  • Redirect statuses: SUCCESS, FAILED, CANCELLED, EXPIRED.
  • Notify is sent only on successful payment; failures and refunds do not trigger notify.
  • Transaction statuses: SUCCESS, FAILED, IN_PROCESS, FULL_REFUNDED, PARTIAL_REFUNDED, REVERSED.
  • Refund: POST /v3/payment/refund with transactionId, refund.type FULL, refund.currencyType, refund.amount, reason.
  • Reverse (timeouts, about 15 minutes): POST /v3/payment/reverse with orderId.
  • Credentials live in Merchant Portal > Developer > Applications.

Critical Rules

  • Keep Client Secret, access/refresh tokens, and your RSA private key server-side only.
  • Never mark paid from redirectUrl query params or the notify body alone; settle from a signed server-side query.
  • Sign the exact requestUrl you call, including any query string, and lowercase the HTTP method.
  • Sort JSON keys recursively and compact before Base64; a mismatch returns INVALID_REQUEST_SIGNATURE (sandbox returns a debug object showing each step).
  • Generate a fresh 32-character nonce and fresh timestamp per request; reused nonces cause duplicate request errors.
  • Use sandbox keys, tokens, Store ID, and server public key only with sandbox hosts; never mix environments.
  • Keep order.id unique per attempt (ORDER_ID_DUPLICATE otherwise) and store checkoutId and transactionId.
  • If a payment call times out, reverse by orderId before retrying with a new order to avoid double charge.
  • Make notify handling and refunds idempotent; check balanceAmount before refunding.
  • Verify live method activation (for example BOOST_MALAYSIA_NOT_ACTIVE), pricing, and settlement in the portal before claiming production certainty.

Completion Criteria

A Revenue Monster integration is done only when:

  1. Token fetch, caching, and refresh run server-side with Basic auth of Client ID and Secret.
  2. Every Open API call carries Bearer token, X-Signature, X-Nonce-Str, X-Timestamp, and passes in sandbox.
  3. Hosted checkout is created server-side with amount in sen and a unique order.id; the customer goes to item.url.
  4. Redirect handler shows status only and triggers a requery; it does not fulfil.
  5. Notify handler records the payload, requeries the transaction by order ID, and settles only on SUCCESS with matching amount, currency, order ID, and store.
  6. Duplicate notify, missing notify, failed/expired/cancelled checkouts, and refunds are idempotent and tested.
  7. Tests cover signature string building (sorted JSON, escapes, empty body), wrong amount/order, duplicate notify, and timeout reverse.
  8. Deployment docs list RM_CLIENT_ID, RM_CLIENT_SECRET, RM_PRIVATE_KEY, RM_SERVER_PUBLIC_KEY, RM_STORE_ID, env, redirect URL, and notify URL.

Loophole Review Loop

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

  1. List trust boundaries: browser redirect, checkout page, backend checkout creator, OAuth server, Open API, notify receiver, signature builder, key storage, database, fulfilment job, refund job, Merchant Portal settings, and method activation.
  2. Check bypasses: fake redirect status=SUCCESS, forged notify body, notify missing (fires on success only), signature over unsorted or unescaped JSON, wrong requestUrl, uppercase method, stale timestamp, reused nonce, sandbox/live key mix, expired access token, wrong amount (ringgit vs sen), reused order ID, timeout double charge, duplicate refund, refund outside provider window, and inactive method.
  3. Add fixes: server-side checkout, local pending payment first, signed requery before settlement, strict amount/currency/order/store checks, durable notify log, idempotency keys, token cache with refresh, reverse on timeout, separate environment config, and portal capability checks.
  4. Re-read references/revenue-monster-api.md sections relevant to any gap.
  5. State remaining uncertainty if it depends on notify header names, method activation, refund windows, pricing, settlement timing, or merchant approval.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Setup Revenue Monster?

Configura, desarrolla, depura, revisa y explica integraciones de pago con Revenue Monster usando la documentación y los SDK oficiales de Revenue Monster, credenciales de cliente OAuth 2.0, firmas de solicitud RSA SHA256 (X-Signature, X-Nonce-Str, X-Timestamp), checkout Web Payment alojado (v3/payment/online), Direct Payment Checkout, callbacks de notify URL, gestión de redirecciones, consulta de transacciones por ID de pedido, reembolso, reversión, conciliación, tokenización, pagos recurrentes, configuración de sandbox/producción y credenciales de Merchant Portal. Úsalo al trabajar con Reve...

¿Por qué usar Setup Revenue Monster en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Setup Revenue Monster está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Setup Revenue Monster en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-revenue-monster. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Setup Revenue Monster?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Setup Revenue Monster?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Setup Revenue Monster con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Setup Revenue Monster?

afu-it la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇