Logo: Setup Maybank2u Pay

Setup Maybank2u Pay

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

Iwwersiicht

Editeurafu-it
Repositorymalaysia-payment-gateway
Skill-Nummsetup-maybank2u-pay
Stären
74
Forks
11
Matgeliwwert Dateien
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

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

Installatioun

Installéiert de KI-Skill Setup Maybank2u Pay an TypingMind, fir e mat all LLM ze benotzen, oder setzt 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 „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-maybank2u-pay
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng 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 d'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-maybank2u-pay .claude/skills/setup-maybank2u-pay
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Setup Maybank2u Pay 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 Maybank2u Pay 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 Maybank2u Pay 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-Schlësselen.

  • 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.

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).

Matgeliwwert Dateien

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 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...

Firwat Setup Maybank2u Pay op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Setup Maybank2u Pay 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 en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Setup Maybank2u Pay 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-maybank2u-pay 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 Maybank2u Pay 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 Maybank2u Pay benotzen?

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

Ass de KI-Skill Setup Maybank2u Pay gratis?

afu-it huet de Skill 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 weiderverwendbare Pak vun Instruktiounen, deen 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 e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

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