Logo di Setup Cardbizpay

Setup Cardbizpay

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

Panoramica

Pubblicato daafu-it
Repositorymalaysia-payment-gateway
Nome della skillsetup-cardbizpay
Stelle
74
Fork
11
File inclusi
5
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 5

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da afu-it su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Setup Cardbizpay in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-cardbizpay
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'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-cardbizpay .claude/skills/setup-cardbizpay
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Setup Cardbizpay in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Setup Cardbizpay non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Setup Cardbizpay non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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...

Perché usare Setup Cardbizpay su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Setup Cardbizpay è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Setup Cardbizpay in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-cardbizpay. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Setup Cardbizpay?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Setup Cardbizpay?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Setup Cardbizpay: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Setup Cardbizpay è gratuita?

È pubblicata su GitHub da afu-it. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇