Setup Stripe Malaysia logo

Setup Stripe Malaysia

Community
afu-it
setup-stripe-malaysia

Set up, build, debug, review, and explain Stripe payment gateway integrations for Malaysia. Use when working with Stripe Checkout Sessions, Payment Intents, Payment Links, Elements, webhooks, Stripe.js, Stripe CLI, refunds, sandbox/live setup, MYR payments, cards, FPX, GrabPay, and production readiness.

Overview

Publisherafu-it
Repositorymalaysia-payment-gateway
Skill namesetup-stripe-malaysia
Stars
74
Forks
11
Bundled files
4
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by afu-it on GitHub. Read the source before you install it.

Installation

Install the Setup Stripe Malaysia AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-stripe-malaysia
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Setup Stripe Malaysia in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Setup Stripe Malaysia on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Setup Stripe Malaysia is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Setup Stripe Malaysia AI skill do?

Set up, build, debug, review, and explain Stripe payment gateway integrations for Malaysia. Use when working with Stripe Checkout Sessions, Payment Intents, Payment Links, Elements, webhooks, Stripe.js, Stripe CLI, refunds, sandbox/live setup, MYR payments, cards, FPX, GrabPay, and production readiness.

Why use Setup Stripe Malaysia on TypingMind?

Because you install it once and use it with any model. Setup Stripe Malaysia is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Setup Stripe Malaysia in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-stripe-malaysia. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Setup Stripe Malaysia?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Setup Stripe Malaysia?

As many as you like. As long as a model supports skills, you can use Setup Stripe Malaysia with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Setup Stripe Malaysia AI skill free?

It is published on GitHub by afu-it. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇