Logo von Setup Maybank2u Pay

Setup Maybank2u Pay

Community
afu-it
setup-maybank2u-pay

Set up, build, debug, review, and explain Maybank2u Pay (M2U Pay) Online Banking Payment Gateway integrations using the official Maybank2u Pay SDK docs and the official Java, JavaScript and PHP SDK source, getEncryptionString send-string building, AES-128-ECB double encryption, envType playground/UAT/production action URLs, m2upay.initPayment pop-up form post (q and i fields), Realtime Payment Notification (RPN) JSON to the Response URL, RPN acknowledgement status codes, Maybank IP allowlisting, Callbackurl redirect parameters, Payee Code, UAT sign-off, and portal technical requirements. Use when working with Maybank2u Pay, Maybank online banking checkout, Maybank current/savings account debit, M2U pop-up payments, payee code setup, RPN webhook settlement, or production readiness.

Übersicht

Herausgeberafu-it
Repositorymalaysia-payment-gateway
Skill-Namesetup-maybank2u-pay
Sterne
74
Forks
11
Mitgelieferte Dateien
4
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 4

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von afu-it auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Setup Maybank2u Pay in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-maybank2u-pay
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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-maybank2u-pay .claude/skills/setup-maybank2u-pay
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Setup Maybank2u Pay in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Setup Maybank2u Pay automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Setup Maybank2u Pay nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Maybank2u Pay Payment Gateway

Use this skill for Maybank2u Pay Online Banking Payment Gateway integration work (customer pays from a Maybank current or savings account through a Maybank2u pop-up).

Source

Read references/maybank2u-pay-api.md before giving factual guidance or writing integration code. It holds the endpoint catalogue, send-string format, the exact encryption algorithm, environments, front-end pop-up, Realtime Payment Notification (RPN) fields, the RPN acknowledgement contract, redirect callback parameters, IPs, and gotchas found in the SDK source.

Read references/account-setup.md when the user asks how to apply, which documents are needed, where the Payee Code comes from, how UAT sign-off works, Response URL and SSL certificate requirements, reporting portals, settlement, or the Cards Payment Gateway (Maybank eBPG).

Read references/source-map.md to pick the right official page or SDK file, and for coverage notes.

Core Workflow

  1. Identify environment: envType 0 playground, 1 UAT, 2 production.
  2. Confirm the merchant has a Payee Code for that environment and has submitted the Payment Notification Technical Requirement (Response URL, port, SSL certificate) in the Maybank2u Pay portal.
  3. Create a local pending payment with a unique reference before building the send string.
  4. Server-side, build the send string and encrypt it exactly as the SDK does; return encryptedString and actionUrl to the page.
  5. On the payment page, call m2upay.initPayment(encryptedString, actionUrl, 'OT') directly from a user click so the pop-up is not blocked.
  6. Treat the pop-up result and any Callbackurl redirect as UX only.
  7. Settle from the RPN: HTTP POST JSON from Maybank to the Response URL, from Maybank's documented IP, matched on AcctId and Amt (cents).
  8. Reply to every RPN with JSON {"Msg":{"PmtType":...,"RefId":...,"StatusCode":"0"}} (or -1, 101, 104).
  9. Settle idempotently on RefId; duplicate RPNs return 104.
  10. Reconcile against the Daily Payment Summary Report and Payment Raw Data File in the Maybank Payee Report Portal; there is no public status-query API.

Core Facts

  • Official docs: https://m2upay.maybank2u.com.my/assets/sdk/index.html (single page) plus SDK zips for Java, JavaScript and PHP.
  • Production action URL: https://www.maybank2u.com.my/mbb/m2u/m9006_enc/m2uMerchantLogin.do.
  • UAT action URL in all three SDKs: https://202.162.18.55:8443/testM2uPayment; playground: https://api.discotech.io/v1.0/testM2uPayment.
  • Request inputs: amount (decimal ringgit, e.g. 100.00, length 9), accountNumber (your invoice/bill ref, alphanumeric, 30), payeeCode (numeric, 3), plus SDK-only refNumber and callbackUrl.
  • Send string: Login$<payeeCode>$1$<amount>$1$<refNumber>$1$<accountNumber>$<callbackUrl> (empty-field variants in the API reference).
  • Encryption: twice, v = base64(AES-128-ECB-PKCS7(key, "Maybank2u simple encryption" + v)), key bytes 00 01 02 ... 0f, then URL-encode. Key and salt are public in every SDK, so this is obfuscation, not integrity.
  • Front end posts a form to actionUrl into a pop-up named M2UPayment with fields q (encrypted string) and i (sub-service, OT in docs and samples).
  • RPN: JSON Msg with PmtType (CashPayment or CCardPayment), RefId, TrnDateTime (YYYYMMDDhhmmss), AcctId, Amt (cents), StatusCode (00 success, 01 unsuccessful), StatusDesc.
  • RPN is UAT and production only; the playground does not send it.
  • RPN source IPs: UAT 202.162.18.247, production 202.162.17.179.
  • RPN reply codes: -1 internal error (resend), 0 OK, 101 rejected by merchant, 104 duplicate. 998 and 999 are reserved for the bank.
  • The RPN carries no signature, hash or HMAC field (checked 2026-10-21).
  • Response URL changes take 5 working days to take effect.
  • No refund, requery, recurring or tokenisation API is documented (checked 2026-10-21).

Critical Rules

  • Build and encrypt the send string server-side only; never let the browser choose amount, payeeCode or accountNumber.
  • Do not trust the encrypted string for integrity: anyone can decrypt and re-encrypt it with the public key.
  • Do not mark paid from the pop-up, the Callbackurl redirect, or front-end JavaScript.
  • Accept RPN only over HTTPS at the registered Response URL, only from the documented Maybank IP for that environment.
  • Match AcctId to a pending local order and Amt (cents) to the expected amount before settling; Maybank's own Java guide calls this mandatory.
  • Make RefId unique in the database; reply 104 for repeats, never double-fulfil.
  • Return -1 only when you want Maybank to resend (for example your database is down).
  • Keep accountNumber free of $ because $ is the send-string delimiter (inference from the format; not stated by Maybank).
  • Swap the UAT Payee Code for the production Payee Code and envType 2 together at go-live.
  • PHP SDK uses mcrypt, removed in PHP 7.2; port to openssl_encrypt with identical output, and confirm in UAT.

Completion Criteria

A Maybank2u Pay integration is done only when:

  1. Send string and encryption run server-side and match the official SDK output byte for byte.
  2. Pop-up opens from a direct user click and posts q and i to the correct actionUrl for the environment.
  3. Response URL, port and SSL certificate are registered for UAT and production in the portal.
  4. RPN handler checks source IP, parses JSON Msg, matches AcctId and Amt, checks StatusCode 00, and replies with the documented JSON.
  5. Duplicate RPNs return 104; failures return 101; transient errors return -1.
  6. Tests cover wrong IP, unknown AcctId, wrong amount, 01 status, duplicate RefId, and success.
  7. UAT screenshots (pop-up and RPN received) are uploaded and UAT is confirmed in the portal.
  8. Deployment docs list M2UPAY_PAYEE_CODE, M2UPAY_ENV_TYPE, Response URL, and allowed RPN IP per environment.

Loophole Review Loop

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

  1. List trust boundaries: checkout page, encryption endpoint, pop-up, Maybank2u login/TAC, Callbackurl redirect, RPN receiver, firewall, database, fulfilment job, payee report portal.
  2. Check bypasses: tampered amount re-encrypted with the public key, fake redirect, forged RPN from a non-Maybank IP, RPN for an unknown or already-paid AcctId, amount in ringgit vs cents mix-up, duplicate RPN, RPN lost while returning 0, UAT payee code in production, popup blocked, PHP mcrypt missing, Java line-wrapped Base64 mismatch.
  3. Add fixes: server-only send string, strict IP allowlist, amount and reference match, unique RefId, durable event log, correct reply codes, daily report reconciliation, environment-specific config.
  4. Re-read references/maybank2u-pay-api.md sections relevant to any gap.
  5. State remaining uncertainty: no RPN signature, no documented requery or refund API, i values other than OT, refNumber and callbackUrl usage, current UAT URL, and current IPs must be confirmed with Maybank (maybank2upay@maybank.com).

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Setup Maybank2u Pay?

Set up, build, debug, review, and explain Maybank2u Pay (M2U Pay) Online Banking Payment Gateway integrations using the official Maybank2u Pay SDK docs and the official Java, JavaScript and PHP SDK source, getEncryptionString send-string building, AES-128-ECB double encryption, envType playground/UAT/production action URLs, m2upay.initPayment pop-up form post (q and i fields), Realtime Payment Notification (RPN) JSON to the Response URL, RPN acknowledgement status codes, Maybank IP allowlisting, Callbackurl redirect parameters, Payee Code, UAT sign-off, and portal technical requirements. Us...

Warum Setup Maybank2u Pay in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Setup Maybank2u Pay besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Setup Maybank2u Pay in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-maybank2u-pay ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Setup Maybank2u Pay nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Setup Maybank2u Pay verwenden?

So viele Sie möchten. In TypingMind können Sie Setup Maybank2u Pay mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Setup Maybank2u Pay kostenlos?

Der Skill wird von afu-it auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇