Logo di Setup Omise

Setup Omise

Community
afu-it
setup-omise

Configura, sviluppa, esegui il debug, rivedi e spiega le integrazioni di pagamento Omise (in precedenza Opn Payments) usando la documentazione ufficiale di Omise, le API Charges, Sources e Tokens su vault.omise.co, Omise.js, 3-D Secure, i reindirizzamenti authorize_uri, i webhook con verifica HMAC-SHA256 di Omise-Signature, l'API Events, rimborsi, annullamenti, acquisizioni, Customers e Schedules per gli addebiti ricorrenti, trasferimenti e destinatari, Payment Links+, modalità test, chiavi API, versioni API e metodi di pagamento malesi. Usala per lavorare con Omise Malaysia, MYR, FPX, DuitNow Online Banking/Wallets, DuitNow QR, Touch 'n Go, Boost, GrabPay, ShopeePay, Maybank QR, Atome, Google Pay, rate Maybank, carte, liquidazione tramite webhook, rimborsi, pagamenti in uscita o preparazione per la produzione.

Add to TypingMind

Panoramica

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

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

Usala in TypingMind

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

Omise Payment Gateway

Use this skill for Omise payment gateway integration work for Malaysian merchants (account country Malaysia, funding currency MYR).

Source

Read references/omise-api.md before giving factual API guidance or writing integration code. It is the entry point: environments, authentication, API versions, the charge flow, webhook signature, statuses, amount rules, rate limits, IPs, and the full Endpoint catalogue. It links to the topic files:

  • references/omise-charges.md: Charge object, create/capture/reverse/expire, card tokens, Omise.js, 3-D Secure.
  • references/omise-malaysia-methods.md: FPX, DuitNow OBW, DuitNow QR, Touch 'n Go, Boost, GrabPay, ShopeePay, Maybank QR, Atome, Google Pay, installments, Source API fields, bank codes, limits.
  • references/omise-webhooks.md: signature verification, event list, Events API, dynamic webhooks.
  • references/omise-refunds-disputes.md: refunds, voids, refund windows, disputes and evidence.
  • references/omise-recurring.md: Customers, Cards, Schedules, Occurrences, charge schedule bulk APIs.
  • references/omise-payouts-reporting.md: Balance, Transactions, Transfers, Recipients, Malaysian bank codes, Receipts, Search.
  • references/omise-payment-links.md: Payment Links+ API.
  • references/omise-testing-errors.md: test mode, test cards, simulation, error codes, failure codes.

Read references/account-setup.md for registration, live account documents, where keys and webhook secrets live, payment method activation, holding period, payouts, and pricing links.

Read references/source-map.md to pick the official page behind any fact, and for coverage notes.

Core Workflow

  1. Identify mode: test keys (pkey_test_..., skey_test_...) or live keys. Same API hosts for both; the key decides the mode.
  2. Identify surface: Omise.js pre-built form, Omise.js custom form, server-only source charge, mobile SDK, plugin (WooCommerce, Magento, Shopify, OpenCart, PrestaShop), Payment Links+, or Schedules.
  3. Confirm the payment method is enabled on the account (each non-card method is enabled by emailing support) and check live availability with GET /capability.
  4. Create a local pending order with the expected amount in sen and currency MYR.
  5. Browser: create a card token (vault.omise.co/tokens) or a source (api.omise.co/sources) with the public key. Or create the source inline in the charge on the server.
  6. Server: POST https://api.omise.co/charges with the secret key, amount, currency, card or source, return_uri, metadata[order_id], and a unique ref_id for idempotency. Store the chrg_... id.
  7. If status is pending and authorize_uri is set, redirect the customer to authorize_uri. Atome QR is offline: show source.scannable_code.image.download_uri instead.
  8. Treat the return to return_uri as UX only. Settle from a verified charge.complete webhook and a fresh GET /charges/{id}.
  9. Verify Omise-Signature (HMAC-SHA256, hex) over <Omise-Signature-Timestamp>.<raw body> with the Base64-decoded webhook secret; accept if any comma-separated signature matches.
  10. Mark paid only when the re-fetched charge has status=successful (paid=true), matching id, amount, currency, livemode, and order metadata. Make it idempotent.

Core Facts

  • API base: https://api.omise.co. Token vault: https://vault.omise.co (tokens only; tokens on api.omise.co return invalid_domain).
  • Auth: HTTP Basic, key as username, blank password (-u $OMISE_SECRET_KEY:). Public key only creates/views tokens and sources; secret key does everything else.
  • Request bodies are form-encoded (-d "source[type]=fpx"). Responses are JSON.
  • Latest API version 2019-05-29; override per request with header Omise-Version. Webhook payloads use the account default version at event time.
  • Amounts are integers in the smallest unit: 100 = RM1.00. Malaysia charge limits 100 to 10000000 (RM1 to RM100,000); methods have tighter limits. Search API uses the main unit instead.
  • Charge status: pending, successful, failed, expired, reversed. Failure detail in failure_code and failure_message.
  • Source flow: redirect and app_redirect use charge.authorize_uri; offline uses charge.source.scannable_code or references.
  • Malaysian source types: fpx, duitnow_obw, duitnow_qr, touch_n_go, boost, grabpay, shopeepay, shopeepay_jumpapp, maybank_qr, atome, atome_qr, installment_mbb. Cards use tokens.
  • FPX and DuitNow OBW need bank; FPX banks come from payment_methods[name=fpx].banks in GET /capability, not the top-level banks (that list is for transfers).
  • Webhook headers: Omise-Signature, Omise-Signature-Timestamp. Secrets are per mode, rotated with a 24 hour dual-signature window.
  • charge.complete fires for 3DS and asynchronous methods, not for non-3DS card charges; read the synchronous charge response there.
  • Omise does not guarantee webhook retries (webhooks page). Reconcile with GET /events or GET /charges/{id}.
  • Dashboard webhook URLs: https://dashboard.omise.co/test/webhooks and https://dashboard.omise.co/live/webhooks. One static endpoint per mode; per-charge webhook_endpoints (max 2 HTTPS URLs) overrides it.
  • Webhook source IPs: 54.169.118.227, 52.74.199.175, 18.139.13.19. API IPs: 76.223.19.23, 13.248.150.88. JSON list: https://cdn.omise.co/ips.json.
  • Rate limit errors are HTTP 429 too_many_requests. No numeric limit is published; Omise advises at most 10 parallel workers.
  • Refunds: POST /charges/{id}/refunds with amount; under 15 refunds per charge, within 365 days at most, method windows are shorter (FPX six months, DuitNow/TnG/Boost/ShopeePay/Maybank QR 180 days, GrabPay three months, Atome 60 days). Refund before settlement is processed as a void.
  • Uncaptured card authorizations expire after 7 days (Malaysia, non-Japan accounts).
  • Payouts (Malaysia): 3 day hold, transfers batched once per business day, deposit in 3 business days, minimum RM1.00 transferable.
  • Multi-currency is not available for Malaysian accounts: charge and settle in MYR.
  • Status page: https://status.omise.co.

Critical Rules

  • Keep the secret key and webhook secret server-side. Never put the secret key in Omise.js, mobile apps, or repos.
  • Never send raw card data through your server unless PCI DSS certified. Use Omise.js or the mobile SDKs to get a tokn_....
  • Tokens are single use. Store customers and cards (cust_..., card_...) for reuse, never tokens.
  • Do not fulfil from return_uri, Omise.js callbacks, or an unverified webhook. Verify the signature over the raw body, then re-fetch the charge.
  • Use constant-time comparison and support two signatures during secret rotation.
  • Source amount and currency must equal the charge amount and currency.
  • Send a unique ref_id per order attempt on charge create so a retried request cannot double-charge.
  • Use return_uri over HTTPS; for app-switch methods on mobile apps use a deep link or app link.
  • Keep test and live keys, webhook URLs and webhook secrets separate.
  • Handle unknown event types and unknown fields without failing.
  • Do not quote fees from memory. Link https://www.omise.co/en/pricing/malaysia.

Completion Criteria

An Omise integration is done only when:

  1. Charges are created server-side with the secret key; the browser only sees the public key.
  2. Card flow handles both an immediate successful response and a pending charge with authorize_uri (3DS).
  3. Every redirect method sends the customer to authorize_uri and returns to an HTTPS return_uri.
  4. The webhook endpoint (HTTPS, valid certificate) verifies Omise-Signature over timestamp.rawBody with the decoded secret.
  5. Settlement re-fetches the charge and checks id, status, paid, amount, currency, livemode, and order metadata before marking paid, once.
  6. A reconciliation job re-fetches pending charges or lists events, since webhook retries are not guaranteed.
  7. Tests cover bad signature, rotated dual signature, duplicate event, wrong amount/currency, failed and expired charges, a 3DS success via test card, and an FPX charge marked successful and failed in test mode.
  8. Deployment docs list OMISE_PUBLIC_KEY, OMISE_SECRET_KEY, OMISE_WEBHOOK_SECRET, the webhook URL per mode, and enabled methods.

Loophole Review Loop

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

  1. List trust boundaries: browser, Omise.js iframe, mobile SDK, your charge API, api.omise.co, vault.omise.co, bank/wallet page at authorize_uri, return_uri handler, webhook receiver, raw-body parser, database, fulfilment, refund job, dashboard settings.
  2. Check bypasses: forged return redirect, forged webhook, signature over re-serialized JSON, wrong-mode secret, only first signature checked during rotation, token reuse, source amount differing from order, missing ref_id on retry, non-3DS card with no webhook, pending charge never reconciled, expired QR or ShopeePay charge, method not enabled, off-us ShopeePay refund impossible, partial refund on installments, refund after window.
  3. Add fixes: server-side charge creation, raw-body HMAC with constant-time compare, re-fetch before settle, unique index on charge id, ref_id, reconciliation via Events API, explicit expires_at, capability check, separate mode config.
  4. Re-read the relevant reference file for any gap.
  5. State remaining uncertainty that depends on account settings: 3DS enablement, enabled methods, method limits, holding period, fees, and webhook retry behavior.

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

Configura, sviluppa, esegui il debug, rivedi e spiega le integrazioni di pagamento Omise (in precedenza Opn Payments) usando la documentazione ufficiale di Omise, le API Charges, Sources e Tokens su vault.omise.co, Omise.js, 3-D Secure, i reindirizzamenti authorize_uri, i webhook con verifica HMAC-SHA256 di Omise-Signature, l'API Events, rimborsi, annullamenti, acquisizioni, Customers e Schedules per gli addebiti ricorrenti, trasferimenti e destinatari, Payment Links+, modalità test, chiavi API, versioni API e metodi di pagamento malesi. Usala per lavorare con Omise Malaysia, MYR, FPX, Duit...

Perché usare Setup Omise su TypingMind?

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

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

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

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

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