Logo: Setup Stripe Malaysia

Setup Stripe Malaysia

Communautéit
afu-it
setup-stripe-malaysia

Stripe-Bezuelgateway-Integratioune fir Malaysia konfiguréieren, entwéckelen, debuggen, iwwerpréiwen an erklären. Benotzt dëst bei der Aarbecht mat Stripe Checkout Sessions, Payment Intents, Payment Links, Elements, Webhooks, Stripe.js, Stripe CLI, Refunds, Sandbox-/Live-Konfiguratioun, MYR-Bezuelungen, Kaarten, FPX, GrabPay oder der Bereetschaft fir de Produktivbetrib.

Iwwersiicht

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

An TypingMind benotzen

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

Stripe Malaysia Payment Gateway

Use this skill for Stripe payment gateway integration work in Malaysia.

Source

Read references/stripe-api.md before giving factual API guidance or writing integration code. It contains source URLs, environment bases, auth, Checkout Sessions flow, Payment Intents guidance, webhooks (Stripe-Signature verification), Stripe.js initialization, CLI testing, test mode cards, and settlement/security cautions.

Read references/account-setup.md when user asks how to register, which credentials are needed, where keys come from, sandbox setup, dashboard setup, payment method activation, Malaysia-specific methods, pricing, or operational status.

Read references/source-map.md when choosing which Stripe docs page applies to API checkout, webhooks, CLI, SDKs, Elements, Payment Links, subscriptions, or samples.

Core Workflow

  1. Identify environment: test mode or live mode.
  2. Identify integration surface: Checkout Sessions (hosted page, embedded form, or embedded Elements), Payment Intents, Payment Links, or Elements-only.
  3. Confirm dashboard setup: API keys (publishable + secret), webhook endpoint, webhook signing secret, enabled payment methods, and environment-specific configuration.
  4. Create a local pending payment before creating the Stripe Checkout Session or PaymentIntent.
  5. Create the Checkout Session or PaymentIntent server-side with the secret key.
  6. For hosted Checkout: redirect the customer to the returned url. For embedded: pass the client_secret to the frontend.
  7. Treat success_url redirect as browser UX only; do not fulfil from redirect alone.
  8. Verify webhook Stripe-Signature using the Stripe library's constructEvent method over the raw request body with the webhook signing secret.
  9. Settle idempotently only after session/PaymentIntent ID, local reference, amount, currency, payment status, and environment match expectations.
  10. Use session/PaymentIntent retrieval as fallback when webhooks are delayed or failed; do not replace webhooks with polling.

Core Facts

  • API base: https://api.stripe.com.
  • Auth: HTTP Bearer Authorization: Bearer {secret_key}.
  • Secret keys start with sk_live_ or sk_test_.
  • Publishable keys start with pk_live_ or pk_test_. These are safe for client-side use.
  • Checkout Sessions endpoint: POST /v1/checkout/sessions.
  • Payment Intents endpoint: POST /v1/payment_intents (only when Checkout Sessions cannot meet requirements).
  • Webhook signing secrets start with whsec_. Each webhook endpoint has its own secret.
  • Webhook signatures use the Stripe-Signature header with HMAC-SHA256 over {timestamp}.{raw_body}.
  • For Checkout Sessions, Stripe recommends fulfilling orders from the checkout.session.completed webhook event.
  • For async payment methods (like FPX bank redirect), use checkout.session.async_payment_succeeded.
  • Checkout Session payment_status values: paid, unpaid, no_payment_required.
  • Test cards: 4242 4242 4242 4242 (Visa), any future expiry, any CVC.
  • Stripe CLI: stripe listen --forward-to for local webhook testing, stripe trigger for event generation.
  • Malaysia Stripe accounts support MYR, cards, FPX, and GrabPay. Verify current availability in the Dashboard.
  • Stripe supports 125+ payment methods globally.

Critical Rules

  • Keep secret API keys and webhook signing secrets server-side only.
  • Never use secret keys in frontend code, mobile apps, or client-side environment variables.
  • Do not mark paid from success_url redirect or client-side status alone.
  • Always validate webhook signatures using the Stripe library's constructEvent/construct_event with the raw request body before parsing JSON.
  • Use the exact webhook signing secret matching the endpoint that received the event.
  • Store provider session ID, local reference, expected amount, expected currency, and environment before redirecting the customer.
  • Make webhook processing idempotent by logging processed event IDs; duplicate events or retries must not double-fulfil.
  • Confirm amount, currency, session/PaymentIntent ID, local reference, and payment status before marking paid.
  • Use separate webhook URLs for test mode and live mode.
  • Use webhook confirmation as the default settlement path and API retrieval only as a fallback.
  • Do not hardcode the temporary webhook secret from stripe listen — it changes each restart. Use it only for local development.
  • Verify live payment method availability, activation, fees, settlement timing, and current incidents in the Dashboard/docs/status page before claiming production certainty.
  • Stripe recommends Checkout Sessions over Payment Intents for most integrations. Only use Payment Intents when the user explicitly needs custom payment UI or deeply owned checkout state.

Completion Criteria

A Stripe integration is done only when:

  1. Checkout Session or PaymentIntent creation runs server-side with the secret key.
  2. Redirect checkout, embedded checkout, or Elements returns only provider state to the backend; it does not fulfil access directly.
  3. Webhook endpoint is registered in the Stripe Dashboard or tested with stripe listen.
  4. Webhook handler verifies Stripe-Signature over the raw request body with the correct webhook signing secret.
  5. Settlement checks session/PaymentIntent ID, local reference, amount, currency, and payment status.
  6. Duplicate webhooks and event retries are idempotent.
  7. Tests cover invalid signature, duplicate webhook/event replay, wrong amount/currency/reference, failed/expired status, and successful completed payment.
  8. Deployment docs include STRIPE_SECRET_KEY, STRIPE_PUBLISHABLE_KEY, STRIPE_WEBHOOK_SECRET, redirect URL, webhook URL, and test/live separation.

Loophole Review Loop

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

  1. List trust boundaries: browser redirect, checkout page, backend payment creator, Stripe API, webhook receiver, raw-body parser, database, fulfilment job, refund job, dashboard settings, status page, and payment method activation.
  2. Check bypasses: fake success redirect, forged webhook, signature over parsed JSON instead of raw body, wrong webhook secret, test/live mode mix, wrong API key, wrong amount, wrong currency, wrong reference, stale status poll, duplicate webhook, webhook retry after partial processing, inactive payment method, unavailable Stripe service, duplicate refund.
  3. Add fixes: server-side Checkout Session/PaymentIntent creation, local pending payment first, raw-body signature verification with Stripe library, strict amount/currency/reference checks, durable event log, idempotency keys, separate environment config, IP allowlisting where needed, status page check, API retrieval fallback, and dashboard capability verification.
  4. Re-read references/stripe-api.md sections relevant to any gap.
  5. State remaining uncertainty if it depends on current account verification, enabled payment methods, activation windows, settlement timing, pricing, or live operational status.

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 Stripe Malaysia?

Stripe-Bezuelgateway-Integratioune fir Malaysia konfiguréieren, entwéckelen, debuggen, iwwerpréiwen an erklären. Benotzt dëst bei der Aarbecht mat Stripe Checkout Sessions, Payment Intents, Payment Links, Elements, Webhooks, Stripe.js, Stripe CLI, Refunds, Sandbox-/Live-Konfiguratioun, MYR-Bezuelungen, Kaarten, FPX, GrabPay oder der Bereetschaft fir de Produktivbetrib.

Firwat Setup Stripe Malaysia op TypingMind benotzen?

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

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