Logo: Setup Cardbizpay

Setup Cardbizpay

Communautéit
afu-it
setup-cardbizpay

Set up, build, debug, review, and explain CardBizPay payment integrations using official CardBizPay developer docs, Merchant API hosted payment page (Payment/Pymt), Payment Return URL callbacks, HMAC-SHA512 base64 signatures, payment enquiry, void, refund, refund enquiry, MDR enquiry, Open Payment API card tokenization (AddCard, RemoveCard, Sale, PreAuth, Capture, PreAuthCancel, Void, Refund, TrxnEnq), staging/production setup, Merchant No, Access Key, Secret Key, and status codes. Use when working with CardBizPay or Cardbiz Payment Services, FPX B2C/B2B, DuitNow, cards, e-wallets, saved cards, pre-authorization, callback verification, requery, refunds, or production readiness.

Iwwersiicht

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

  • 5 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 Cardbizpay 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-cardbizpay
  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-cardbizpay .claude/skills/setup-cardbizpay
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Setup Cardbizpay 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 Cardbizpay 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 Cardbizpay 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.

CardBizPay Payment Gateway

Use this skill for CardBizPay (Cardbiz Payment Services Sdn Bhd) payment gateway integration work.

Source

Read references/cardbizpay-api.md before giving factual API guidance or writing integration code. It is the entry point: environments, endpoint catalogue, the signature algorithm, the Merchant API (hosted payment page, enquiry, void, refund, MDR), status codes, and documented doc defects.

Read references/cardbizpay-opa.md when the merchant needs saved cards, merchant-initiated charges, pre-authorization and capture, or the Open Payment API (/opa/*).

Read references/account-setup.md when the user asks how to register, which credentials exist, who configures the return/notify URL, sandbox access, payment methods, settlement, or pricing.

Read references/source-map.md to find the official page behind a fact, or to see what the public docs do not cover.

Core Workflow

  1. Identify environment: staging (https://uat.cardbizpay.com/paymentgateway) or production (https://www.cardbizpay.com/paymentgateway).
  2. Identify API family: Merchant API (/Payment/*, hosted payment page) or Open Payment API (/opa/*, card tokens).
  3. Confirm onboarding: merchant profile created by the CardBizPay administrator, Merchant No, Access Key, Secret Key used for signing (the docs name both and do not say whether they are the same value), API access enabled on the profile, Payment Return URL (Merchant API) or Notify URL (Open Payment API) registered with CardBizPay, payment methods subscribed.
  4. Create a local pending order with a unique OrderId (max 25 chars for /Payment/Pymt) and the exact amount string you will send.
  5. Build the request server-side, compute Signature = base64(HMAC-SHA512(secret, concatenated values in documented field order)), and auto-submit an HTML form POST from the browser to [Base URL]/Payment/Pymt.
  6. Receive the response form POST at the Payment Return URL. Verify Signature over the received values in the documented response field order before trusting any field.
  7. Check RespCode = "00", StatusCode = "A", MerchantNo, OrderId, and TrxnAmount against the local order. Store TrxnId (needed for void and refund).
  8. Requery with GET /Payment/PymtEnq when the return post is missing, unverifiable, or not final (N, W).
  9. Settle idempotently: one order transitions to paid once, no matter how many posts or enquiries arrive.

Core Facts

  • All requests are HTML form posts; enquiries are documented as GET. Field names are case-sensitive PascalCase (MerchantNo, OrderId, TrxnAmount).
  • Signature: HMAC-SHA512 keyed with the merchant Secret Key, output base64. String to sign = values only, no separators, in the documented field order, skipping Signature and any optional field whose value is empty.
  • Official test vector (reproduces): 1000000000000001M12345678910.50 with key Ws123456Ws987654 gives ++lLP7XD4fK3t7PsBz50LdVU35yutApDvZdmlltNXuBsrQnF0B/ed1uxAjSN+3anRjJWrDelYCZoWbsyTzAuMg==.
  • Optional (O) fields must still be posted as parameters, with an empty value if unused.
  • Amounts are ringgit strings, up to 2 decimals, no thousand separators ("10", "10.5", "10.50"). No currency field is documented.
  • ReqDate format yyyyMMddHHmmss. Open Payment API rejects a ReqDate more than 60 minutes from host time.
  • PymtMethodSelect values: empty (all), Card, FPX, FPX B2C, FPX B2B, e-Wallet, DuitNow; comma-separate multiple.
  • CustMobile is required in practice when e-Wallet is subscribed; CustEmail must be supplied to avoid declines.
  • Response code 00 = approved / accepted. Payment status: A approved, D declined, N pending (cancelled after 3 days unpaid), W awaiting status, V voided, C cancelled, Q partially refunded, R fully refunded; Open Payment API adds P pre-auth and T pre-auth cancelled.
  • Void is same-day only and returns 100%; refunds may be full or multiple partial, each with a unique RefundId (max 20).
  • Payment page session counter is 15 minutes.
  • The Payment Return URL is not a request field; CardBizPay configures it on the merchant profile (editable in the Merchant Portal if you have a login).

Critical Rules

  • Keep the Secret Key server-side only; compute signatures on the server, never in browser JavaScript.
  • Never mark paid from the browser landing alone or from an unsigned or badly signed post.
  • Verify the response signature over the exact received string values; do not reformat amounts before hashing.
  • Sign the exact strings you post. If you send "10.5", sign "10.5", and use the same string for later void, refund, and enquiry calls ("should be the same value when calling Payment API").
  • Compare signatures in constant time.
  • Use separate Merchant No and Secret Key per environment; never mix staging credentials with the production base URL.
  • OrderId must be unique per transaction (status 22 duplicate, 13 already paid).
  • Treat N and W as not final; requery, do not fail the order early.
  • Make return-URL handling idempotent; duplicate posts and enquiry results must not double-fulfil.
  • Where the docs are ambiguous (listed in references/cardbizpay-api.md under Doc Defects), confirm with CardBizPay in staging before going live.

Completion Criteria

A CardBizPay integration is done only when:

  1. Payment requests are built and signed server-side with the documented field order and all optional parameters present.
  2. The Payment Return URL (and Notify URL for Open Payment API) is registered with CardBizPay for each environment.
  3. The return handler verifies Signature over the documented response field order, with empty optional fields skipped.
  4. Settlement checks RespCode, StatusCode, MerchantNo, OrderId, TrxnAmount, and stores TrxnId.
  5. PymtEnq requery covers missing or non-final results; void and refund use stored TrxnId and the original amount string.
  6. Tests cover bad signature, wrong amount, wrong order, duplicate post, declined (D), pending (N/W), and approved (A), plus the official signature test vector.
  7. Deployment docs list CARDBIZPAY_MERCHANT_NO, CARDBIZPAY_SECRET_KEY, CARDBIZPAY_BASE_URL, and the registered return URL per environment.

Loophole Review Loop

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

  1. List trust boundaries: browser form post, CardBizPay payment page, Payment Return URL handler, Notify URL handler, enquiry calls, database, fulfilment, void/refund jobs, Merchant Portal settings.
  2. Check bypasses: forged return post, signature over wrong field order, amount reformatted before hashing, empty optional field wrongly included, staging key in production, reused OrderId, stale enquiry, duplicate post, pending N/W treated as failed, void after the same-day window, refund over the remaining amount, token used with the wrong CustId.
  3. Add fixes: server-side signing, strict field-order tables, constant-time compare, local pending order first, PymtEnq fallback, idempotent state transitions, per-environment config, unique RefundId and RequestId.
  4. Re-read the relevant sections of references/cardbizpay-api.md or references/cardbizpay-opa.md.
  5. State remaining uncertainty: whether the return post is browser or server-to-server, enquiry response format, Transaction List encoding, profile-level API enablement, subscribed methods, and pricing. These are not settled by public docs.

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 Cardbizpay?

Set up, build, debug, review, and explain CardBizPay payment integrations using official CardBizPay developer docs, Merchant API hosted payment page (Payment/Pymt), Payment Return URL callbacks, HMAC-SHA512 base64 signatures, payment enquiry, void, refund, refund enquiry, MDR enquiry, Open Payment API card tokenization (AddCard, RemoveCard, Sale, PreAuth, Capture, PreAuthCancel, Void, Refund, TrxnEnq), staging/production setup, Merchant No, Access Key, Secret Key, and status codes. Use when working with CardBizPay or Cardbiz Payment Services, FPX B2C/B2B, DuitNow, cards, e-wallets, saved ca...

Firwat Setup Cardbizpay op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Setup Cardbizpay 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 Cardbizpay 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-cardbizpay 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 Cardbizpay 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 Cardbizpay benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Setup Cardbizpay 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 Cardbizpay 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 👇