Logo: Setup Lekirpay

Setup Lekirpay

Communautéit
afu-it
setup-lekirpay

LekirPay-Bezuelintegratiounen opbauen, implementéieren, debuggen, iwwerpréiwen an erklären – mat der offizieller LekirPay-Dokumentatioun. Dëst ëmfaasst OAuth2-client_credentials-Access-Tokens, d'APIs Send Payment a Secure Send Payment, d'Lekir-Signature-HMAC-SHA256-Checksum, den gehostete Checkout iwwer payment_url, Notifikatiounen iwwer callback_url, d'Ëmleedungen iwwer redirect_url an cancel_url, d'Neiufro vum Payment Status, Payment Groups, Sandbox- a Live-Hosts, Client ID, Lekirkey an den offiziellen GiveWP-Plugin. Benotzt dëse Skill bei der Aarbecht mat LekirPay Malaysia, Lekir Tech, FPX, Kreditkaarte-Checkouts, Bezuelungslinken, Bezuelungs- a Spendëformulairen, Callback-Ofrechnungen oder der Virbereedung op de Produktivbetrib.

Add to TypingMind

Iwwersiicht

Editeurafu-it
Repositorymalaysia-payment-gateway
Skill-Nummsetup-lekirpay
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 Lekirpay 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-lekirpay
  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-lekirpay .claude/skills/setup-lekirpay
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

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

LekirPay Payment Gateway

Use this skill for LekirPay (Lekir Tech (M) Sdn Bhd) payment gateway integration work.

Source

Read references/lekirpay-api.md before giving factual API guidance or writing integration code. It holds the endpoint catalogue, base URLs, token flow, full request/response field tables, the Lekir-Signature checksum algorithm with a verified worked example, callback fields, status values, and documented gaps.

Read references/account-setup.md when the user asks how to register, where the Client ID, Lekirkey and Lekir-Signature key live, sandbox vs live, env var names, payment methods, refunds, settlement, or pricing.

Read references/source-map.md to pick the right official page, and to see which doc pages are hidden or legacy.

Core Workflow

  1. Identify environment: sandbox (https://sandbox.lekirpay.com) or live (https://app.lekirpay.com). Confirm the sandbox host responds before relying on it.
  2. Confirm the merchant profile is verified; the payment APIs refuse unverified profiles.
  3. Get credentials from the dashboard API tab: ID (client_id), Lekirkey (client_secret), Lekir-Signature key.
  4. Create a local pending payment with a unique reference_no (max 140 characters) and the exact amount string.
  5. Request a Bearer token: POST /oauth/token with grant_type=client_credentials, client_id, client_secret. Cache it server-side (documented expires_in 1296000 s, 15 days).
  6. Create the payment server-side with POST /api/payments/payment/secure (preferred, sends checksum) or POST /api/payments/payment.
  7. Store payment_id, then redirect the customer to payment_url.
  8. On callback_url POST (and on redirect_url return), treat the payload as untrusted: it carries no documented signature.
  9. Requery GET /api/payments/{payment_id}/status with the Bearer token; settle only when status is Paid and payment_id, reference_no, and amount match the local record.
  10. Settle idempotently; callback, redirect and manual requery may all arrive for the same payment.

Core Facts

  • Live API base: https://app.lekirpay.com/api. Sandbox API base (docs): https://sandbox.lekirpay.com/api.
  • Token endpoint (live): POST https://app.lekirpay.com/oauth/token; response token_type Bearer, expires_in, access_token.
  • Create payment: POST /api/payments/payment; signed variant: POST /api/payments/payment/secure.
  • Required create fields: item, amount, reference_no, callback_url, email, name (plus checksum on /secure).
  • Create response: payment_id, reference_no, payment_url, status (created), created_date.
  • Checksum: HMAC-SHA256 (hex) with the Lekir-Signature key over amount{amount}|email{email}|item{item}|name{name}|callback_url{callback_url}|reference_no{reference_no} in that fixed order.
  • Callback: LekirPay POSTs payment_id, reference_no, trx_no, merchant_name, amount, name, email, phone, item, timestamp, payment_method, status, type (callback or redirect) on success or failure.
  • Status requery: GET /api/payments/{payment_id}/status; statuses Created, Proceed, Paid, Failed.
  • method (GET or POST, default POST) controls how data is sent to the redirect.
  • Amount is a ringgit decimal (double), not sen. Website states MYR only.
  • API accepts application/x-www-form-urlencoded and application/json; documented HTTP codes are 200 and 400.
  • Payment Groups: POST /api/payment_group/create, GET /api/payment_group/data; pass group_id on create payment.
  • No refund, recurring, tokenisation, or webhook-signature API is documented.

Critical Rules

  • Keep client_secret (Lekirkey), the Lekir-Signature key and access tokens server-side only.
  • Never mark paid from the callback body, the redirect_url hit, or status in a POST alone; always requery the status API.
  • Compare status case-insensitively (created in create responses, Paid in the official plugin check).
  • Build the checksum string from the exact values you send (same amount formatting, same callback_url with scheme); do not sort keys alphabetically even though the docs prose says "ascending".
  • Make reference_no unique per attempt and use it to map callbacks back to local orders.
  • Return HTTP 200 quickly from the callback; do the requery and settlement idempotently.
  • Do not call the hidden bulk payout or transfer pages (lekirpay.co); they are legacy and the host does not resolve.
  • Do not copy the GiveWP plugin's secure-payment code: it never calls /secure and uses an undefined key variable.
  • Verify current sandbox availability, plan (cards need Enterprise), and settlement terms with LekirPay before claiming production certainty.

Completion Criteria

A LekirPay integration is done only when:

  1. Token request and payment creation run server-side; the token is cached and refreshed before expiry.
  2. Local pending payment with unique reference_no and expected amount exists before redirecting to payment_url.
  3. checksum (if using /secure) is computed over the documented fixed-order string and unit-tested against the doc example.
  4. Callback and redirect handlers requery GET /api/payments/{payment_id}/status and check payment_id, reference_no, amount and Paid status.
  5. Settlement is idempotent across callback, redirect, and retry.
  6. Tests cover forged callback (status Paid but API says otherwise), wrong amount, wrong reference, Failed status, duplicate callback, expired token.
  7. Deployment docs list LEKIRPAY_BASE_URL, LEKIRPAY_CLIENT_ID, LEKIRPAY_CLIENT_SECRET, LEKIRPAY_SIGNATURE_KEY, callback URL, redirect URL, and sandbox/live separation.

Loophole Review Loop

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

  1. List trust boundaries: browser redirect, payment_url page, backend creator, token cache, LekirPay API, callback receiver, status requery, database, fulfilment job, dashboard settings.
  2. Check bypasses: forged callback POST (no signature), fake redirect POST with status=Paid, payment_id swapped to another merchant order, amount tampering, reused reference_no, stale token, sandbox/live mix, case-sensitive status compare, duplicate callback, callback for Failed after Paid, unverified profile, card payment on a plan without cards.
  3. Add fixes: server-side creation, local pending record, status requery as the only truth, strict payment_id/reference_no/amount match, unique constraint on payment_id, durable event log, token refresh, separate env config.
  4. Re-read references/lekirpay-api.md sections relevant to any gap.
  5. State remaining uncertainty: callback retry policy, expected callback response, error body shape, sandbox host status, refund process, and settlement schedule are not documented.

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

LekirPay-Bezuelintegratiounen opbauen, implementéieren, debuggen, iwwerpréiwen an erklären – mat der offizieller LekirPay-Dokumentatioun. Dëst ëmfaasst OAuth2-client_credentials-Access-Tokens, d'APIs Send Payment a Secure Send Payment, d'Lekir-Signature-HMAC-SHA256-Checksum, den gehostete Checkout iwwer payment_url, Notifikatiounen iwwer callback_url, d'Ëmleedungen iwwer redirect_url an cancel_url, d'Neiufro vum Payment Status, Payment Groups, Sandbox- a Live-Hosts, Client ID, Lekirkey an den offiziellen GiveWP-Plugin. Benotzt dëse Skill bei der Aarbecht mat LekirPay Malaysia, Lekir Tech, F...

Firwat Setup Lekirpay op TypingMind benotzen?

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

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