Stripeのロゴ

Stripe

コミュニティ
algoderiv
stripe

Stripe payment platform integration guide covering API authentication, webhooks, error handling, testing, Connect platforms/marketplaces, SDKs, and development best practices. This skill should be used when building payment integrations with Stripe, implementing checkout flows, managing subscriptions, handling webhooks, creating Connect platforms, processing payouts, or debugging Stripe API errors.

Add to TypingMind

概要

公開者algoderiv
リポジトリagent-skills
スキル名stripe
スター
59
フォーク
3
同梱ファイル
7
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 7個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/algoderiv/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/stripe .claude/skills/stripe
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Stripe Development & Integration

Stripe is a payment infrastructure platform providing APIs and tools for internet commerce. This skill covers the core development workflows: API authentication, payment processing, webhook handling, error management, testing strategies, and building multi-party platforms with Stripe Connect.

When to Use This Skill

This skill should be triggered when:

  • Integrating Stripe payments (checkout, subscriptions, invoices)
  • Setting up API keys and authentication
  • Implementing webhook endpoints and signature verification
  • Handling Stripe errors and decline codes
  • Testing with sandbox/test cards
  • Building platforms or marketplaces with Stripe Connect
  • Managing connected accounts, charges, transfers, and payouts
  • Using Stripe SDKs (Node.js, Python, Ruby, Go, Java, PHP, .NET)
  • Debugging Stripe API issues

Quick Reference

API Base URL

https://api.stripe.com

Authentication

bash
# Secret key (server-side only)
curl https://api.stripe.com/v1/charges \
  -u sk_test_xxxx:

# Or via Authorization header
curl https://api.stripe.com/v1/charges \
  -H "Authorization: Bearer sk_test_xxxx"

Key Prefixes

ModeSecret KeyPublishable KeyRestricted Key
Sandboxsk_test_pk_test_rk_test_
Livesk_live_pk_live_rk_live_

Available SDKs

PlatformPackage
Node.jsstripe
Pythonstripe
Rubystripe
Gogithub.com/stripe/stripe-go
Javacom.stripe:stripe-java
PHPstripe/stripe-php
.NETStripe.net
React (web)@stripe/react-stripe-js
iOSStripePaymentSheet
Androidcom.stripe:stripe-android
React Native@stripe/stripe-react-native

Common Test Cards

CardNumberPaymentMethod
Visa4242424242424242pm_card_visa
Visa (debit)4000056655665556pm_card_visa_debit
Mastercard5555555555554444pm_card_mastercard
Amex378282246310005pm_card_amex
Declined4000000000000002pm_card_chargeDeclined
Fraud block-pm_card_radarBlock
Expired-pm_card_chargeDeclinedExpiredCard

Use any future expiry date, any 3-digit CVC (4 for Amex), any other values.

Create a Payment Intent (curl)

bash
curl https://api.stripe.com/v1/payment_intents \
  -u sk_test_xxx: \
  -d amount=2000 \
  -d currency=usd \
  -d "payment_method_types[]"=card

Connect Charge Types

TypeUse CaseFund Flow
Direct chargesSaaS platformsCustomer → Connected Account → Platform fee
Destination chargesMarketplacesCustomer → Platform → Connected Account
Separate charges & transfersComplex splitsCustomer → Platform → Multiple accounts

Webhook Signature Verification (Node.js)

javascript
const stripe = require('stripe')('sk_test_xxx');
const endpointSecret = 'whsec_xxx';

app.post('/webhook', (req, res) => {
  const sig = req.headers['stripe-signature'];
  let event;
  try {
    event = stripe.webhooks.constructEvent(req.body, sig, endpointSecret);
  } catch (err) {
    return res.status(400).send(`Webhook Error: ${err.message}`);
  }
  // Handle event
  res.status(200).json({received: true});
});

Error Types

Exception ClassHTTPCause
CardError402Payment declined / card issue
InvalidRequestError400Wrong parameters or invalid state
AuthenticationError401Bad API key
RateLimitError429Too many requests
APIConnectionError-Network failure
APIError500Stripe server error
IdempotencyError400Mismatched idempotency key
PermissionError403Restricted key lacks permissions
SignatureVerificationError-Invalid webhook signature

References

  • api-keys-auth.md - API keys, authentication, security best practices, key management
  • error-handling.md - Error types, exception handling patterns, test cards for errors
  • webhooks.md - Webhook setup, signature verification, event handling, testing, best practices
  • testing.md - Sandbox environment, test card numbers by brand/country, PaymentMethods, going live
  • connect-overview.md - Connect platform design, account types, charge types, onboarding, payouts
  • connect-charges.md - Direct/destination/separate charges, platform fees, fund flow
  • development-essentials.md - SDKs, expanding objects, pagination, idempotency, versioning, metadata

同梱ファイル

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

よくある質問

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

Stripe payment platform integration guide covering API authentication, webhooks, error handling, testing, Connect platforms/marketplaces, SDKs, and development best practices. This skill should be used when building payment integrations with Stripe, implementing checkout flows, managing subscriptions, handling webhooks, creating Connect platforms, processing payouts, or debugging Stripe API errors.

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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