Setup Stripe Malaysiaのロゴ

Setup Stripe Malaysia

コミュニティ
afu-it
setup-stripe-malaysia

Malaysia向けのStripe決済ゲートウェイ連携の設定、構築、デバッグ、レビュー、説明を行います。Stripe Checkout Sessions、Payment Intents、Payment Links、Elements、Webhook、Stripe.js、Stripe CLI、返金、サンドボックス/本番環境の設定、MYR決済、カード、FPX、GrabPay、本番稼働準備に取り組む際に使用してください。

概要

公開者afu-it
リポジトリmalaysia-payment-gateway
スキル名setup-stripe-malaysia
スター
74
フォーク
11
同梱ファイル
4
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    afu-itがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Setup Stripe Malaysia」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-stripe-malaysia
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSetup Stripe Malaysiaを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSetup Stripe Malaysiaを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Setup Stripe Malaysiaは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Setup Stripe Malaysia」では何ができますか?

Malaysia向けのStripe決済ゲートウェイ連携の設定、構築、デバッグ、レビュー、説明を行います。Stripe Checkout Sessions、Payment Intents、Payment Links、Elements、Webhook、Stripe.js、Stripe CLI、返金、サンドボックス/本番環境の設定、MYR決済、カード、FPX、GrabPay、本番稼働準備に取り組む際に使用してください。

TypingMindでSetup Stripe Malaysiaを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Setup Stripe Malaysiaはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSetup Stripe Malaysiaをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-stripe-malaysiaを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Setup Stripe Malaysiaを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Setup Stripe Malaysiaで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSetup Stripe Malaysiaを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Setup Stripe Malaysia」は無料ですか?

afu-itがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇