Logo di Setup Lekirpay

Setup Lekirpay

Community
afu-it
setup-lekirpay

Configura, sviluppa, esegui il debug, rivedi e spiega le integrazioni di pagamento LekirPay usando la documentazione ufficiale di LekirPay. Include i token di accesso OAuth2 client_credentials, le API Send Payment e Secure Send Payment, il checksum Lekir-Signature HMAC-SHA256, il checkout ospitato payment_url, le notifiche callback_url, i reindirizzamenti di ritorno redirect_url e cancel_url, la nuova verifica Payment Status, Payment Groups, gli host sandbox/live, Client ID, Lekirkey e il plugin ufficiale GiveWP. Usala per lavorare con LekirPay Malaysia, Lekir Tech, FPX, checkout con carta di credito, link di pagamento, moduli di pagamento, moduli per donazioni, liquidazione tramite callback o preparazione per la produzione.

Add to TypingMind

Panoramica

Pubblicato daafu-it
Repositorymalaysia-payment-gateway
Nome della skillsetup-lekirpay
Stelle
74
Fork
11
File inclusi
4
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: 4

    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 Lekirpay 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-lekirpay
  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-lekirpay .claude/skills/setup-lekirpay
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Setup Lekirpay 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 Lekirpay 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 Lekirpay 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à.

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.

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

Configura, sviluppa, esegui il debug, rivedi e spiega le integrazioni di pagamento LekirPay usando la documentazione ufficiale di LekirPay. Include i token di accesso OAuth2 client_credentials, le API Send Payment e Secure Send Payment, il checksum Lekir-Signature HMAC-SHA256, il checkout ospitato payment_url, le notifiche callback_url, i reindirizzamenti di ritorno redirect_url e cancel_url, la nuova verifica Payment Status, Payment Groups, gli host sandbox/live, Client ID, Lekirkey e il plugin ufficiale GiveWP. Usala per lavorare con LekirPay Malaysia, Lekir Tech, FPX, checkout con carta...

Perché usare Setup Lekirpay su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Setup Lekirpay è 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 Lekirpay in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-lekirpay. 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 Lekirpay?

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

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

La skill IA Setup Lekirpay è 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 👇