Stripe logo

Stripe

Community
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.

Overview

Publisheralgoderiv
Repositoryagent-skills
Skill namestripe
Stars
59
Forks
3
Bundled files
7
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.

  • 7 bundled files

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

  • Open source

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

Installation

Install the Stripe 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/algoderiv/agent-skills/tree/main/skills/stripe
  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/algoderiv/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/stripe .claude/skills/stripe
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Stripe 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 Stripe 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 Stripe 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 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

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 Stripe AI skill do?

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.

Why use Stripe on TypingMind?

Because you install it once and use it with any model. Stripe 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 Stripe in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/algoderiv/agent-skills/tree/main/skills/stripe. 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 Stripe?

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

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

Is the Stripe AI skill free?

It is published on GitHub by algoderiv. 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 👇