Logo vun Setup Qashier

Setup Qashier

Communautéit
afu-it
setup-qashier

Set up, build, debug, review, and explain Qashier payment integrations using official Qashier docs, QashierPay Online Checkout Session API, hosted checkout redirect, HTTP Basic Auth API keys, Idempotency-Key, X-Qashier-Signature HMAC-SHA256 webhooks, checkout.session.completed and checkout.session.expired events, refunds, staging/production setup, test cards, and the In-Store Payment Open API for QashierPay terminals. Use when working with Qashier Malaysia, QashierPay Online, Qashier checkout sessions, DuitNow QR, cards, e-wallets, Pay-by-Link, Shopify/WooCommerce/Wix plug-ins, terminal payment initiate/cancel/void/status, webhook settlement, refunds, or production readiness.

Iwwersiicht

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

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

Installatioun

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

An TypingMind benotzen

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

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

Qashier Payment Gateway

Use this skill for Qashier (QashierPay Online and QashierPay terminal) payment integration work.

Source

Read references/qashier-api.md before giving factual API guidance or writing integration code. It is the entry point: environments, auth, endpoint catalogue, Checkout Session fields, webhooks and the exact signature algorithm, refunds, errors, rate limits, test cards, and documented gaps.

Read references/qashier-instore.md only when the user integrates their own POS with a QashierPay card terminal (partner API with x-qashier-partner and x-qashier-sign).

Read references/account-setup.md when the user asks how to sign up, where keys come from, staging vs production, payment method activation, plug-ins, Pay-by-Link, settlement, or pricing.

Read references/source-map.md to pick the right official page or to check coverage.

Core Workflow

  1. Identify the surface: QashierPay Online hosted checkout (API), plug-in (Shopify, WooCommerce, Wix), Pay-by-Link (no code), or in-store terminal partner API.
  2. Identify environment: staging (api.staging.qashier.com) or production (api.qashier.com), with matching API key.
  3. Create a local pending order first, with amount in sen and currency MYR.
  4. Create the Checkout Session server-side: POST /checkout/sessions with Basic Auth (API key as username, empty password) and an Idempotency-Key header.
  5. Store the returned session id against the local order, then redirect the customer (HTTP 303) to the returned url.
  6. Treat success_url and return_url as browser UX only; never fulfil from them.
  7. Verify X-Qashier-Signature on every webhook over the raw request body before parsing JSON.
  8. On checkout.session.completed, fulfil only when data.object.payment_status is paid; unpaid means the attempt was declined.
  9. Re-fetch the session with GET /checkout/sessions/{id} and match id, amount, currency, status before settling idempotently.
  10. For abandonment, retrieve the session after expires_at and confirm status: expired; no webhook fires for natural expiry.

Core Facts

  • Online API base: production https://api.qashier.com/v3/payment/qpay, staging https://api.staging.qashier.com/v3/payment/qpay.
  • Auth: HTTP Basic, API key as username, empty password (Authorization: Basic base64("<API_KEY>:")). Keys are managed in the Qashier Dashboard.
  • Endpoints: POST /checkout/sessions, GET /checkout/sessions, GET /checkout/sessions/{id}, POST /checkout/sessions/{id}/expire, POST /refund.
  • Create requires currency, line_items[] (unit_amount integer in cents, quantity limited to 1), return_url, success_url; optional expires_at, customer_email.
  • expires_at is 30 minutes to 24 hours after creation; default 24 hours.
  • Session status: open, complete, expired. payment_status: paid, unpaid.
  • Webhook events: checkout.session.completed, checkout.session.expired (only when you call expire), and refund updates.
  • Signature: header t=<ts>,v1=<hex>; signing_key = SHA256(webhook_secret); v1 = HMAC_SHA256(signing_key, "<t>.<raw_body>"); constant-time compare.
  • Refunds: POST /refund with sessionId and optional amount in cents; async, status pending, succeeded, failed.
  • Idempotency keys: max 255 chars, kept 24 hours, reuse with different params returns 409 idempotency_error.
  • Rate limit: 100 requests per second per API key; 429 rate_limit_error.
  • Merchants do not pick payment methods per session; checkout shows what the account has enabled.

Critical Rules

  • Keep the API key and webhook secret server-side only.
  • Never fulfil on the event name alone; checkout.session.completed is sent for declines too.
  • Verify the signature over the exact raw bytes received; do not re-serialize JSON.
  • Do not infer abandonment from webhook silence; retrieve the session and check status.
  • Use separate keys, webhook URLs, and secrets for staging and production.
  • Make settlement idempotent on session id (and webhook event id); duplicates must not double-fulfil.
  • Send amounts as integers in sen (RM20.00 = 2000); confirm amount and MYR currency on settlement.
  • Ignore the docs page /docs/api/payments-example (POST /v1/payments, Bearer token): it is a template example, not the real API.
  • Confirm documented gaps (webhook URL registration, secret location, signing key encoding, timestamp tolerance) with Qashier before production; see references/qashier-api.md.

Completion Criteria

A Qashier integration is done only when:

  1. Checkout Session creation runs server-side with Basic Auth and an Idempotency-Key.
  2. The local order stores session id, expected amount, currency, environment, and state before redirect.
  3. The webhook handler verifies X-Qashier-Signature over the raw body with the correct environment secret, constant-time.
  4. Settlement requires payment_status: paid, matching session id, amount, and currency, confirmed by a server-side retrieve.
  5. Declines (unpaid), duplicate events, delayed webhooks, and natural expiry are handled idempotently.
  6. Refunds use POST /refund, and refund state is reconciled from refund webhooks or refund_details.
  7. Tests cover invalid signature, replayed event, declined card (unpaid), wrong amount/currency, expired session, and a paid session, using the documented test cards on staging.
  8. Deployment docs list QASHIER_API_KEY, QASHIER_WEBHOOK_SECRET, QASHIER_API_BASE, success/return URLs, webhook URL, and staging/production separation.

Loophole Review Loop

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

  1. List trust boundaries: browser, success/return pages, backend session creator, Qashier API, webhook receiver, raw-body parser, database, fulfilment job, refund job, dashboard settings, and payment method activation.
  2. Check bypasses: fake success redirect, forged webhook, signature over parsed JSON, wrong secret or key encoding, staging/live mix, completed treated as paid, wrong amount or currency, replayed event with old timestamp, duplicate webhook, abandoned session marked failed too early, refund double-sent, disabled payment method.
  3. Add fixes: server-side session creation, local pending order first, raw-body HMAC verification, constant-time compare, timestamp age check, retrieve-before-settle, strict amount/currency/id checks, durable event log, idempotency keys, separate environment config.
  4. Re-read references/qashier-api.md sections relevant to any gap.
  5. State remaining uncertainty where it depends on undocumented items (webhook URL setup, secret location, timestamp tolerance, refund idempotency), account approval, enabled methods, settlement timing, or pricing.

Matgeliwwert Fichieren

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

Set up, build, debug, review, and explain Qashier payment integrations using official Qashier docs, QashierPay Online Checkout Session API, hosted checkout redirect, HTTP Basic Auth API keys, Idempotency-Key, X-Qashier-Signature HMAC-SHA256 webhooks, checkout.session.completed and checkout.session.expired events, refunds, staging/production setup, test cards, and the In-Store Payment Open API for QashierPay terminals. Use when working with Qashier Malaysia, QashierPay Online, Qashier checkout sessions, DuitNow QR, cards, e-wallets, Pay-by-Link, Shopify/WooCommerce/Wix plug-ins, terminal pay...

Firwat Setup Qashier op TypingMind benotzen?

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

Wéi installéieren ech Setup Qashier 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-qashier 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 Qashier 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 Qashier benotzen?

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

Ass de KI-Skill Setup Qashier gratis?

De Skill gëtt vum afu-it 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 weiderverwendbaart Pak vun Instruktiounen, dat 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 en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

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