skills/stripe/SKILL.md
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.
npx skillsauth add algoderiv/agent-skills stripeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
This skill should be triggered when:
https://api.stripe.com
# 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"
| Mode | Secret Key | Publishable Key | Restricted Key |
|------|-----------|-----------------|----------------|
| Sandbox | sk_test_ | pk_test_ | rk_test_ |
| Live | sk_live_ | pk_live_ | rk_live_ |
| Platform | Package |
|----------|---------|
| Node.js | stripe |
| Python | stripe |
| Ruby | stripe |
| Go | github.com/stripe/stripe-go |
| Java | com.stripe:stripe-java |
| PHP | stripe/stripe-php |
| .NET | Stripe.net |
| React (web) | @stripe/react-stripe-js |
| iOS | StripePaymentSheet |
| Android | com.stripe:stripe-android |
| React Native | @stripe/stripe-react-native |
| Card | Number | PaymentMethod |
|------|--------|---------------|
| Visa | 4242424242424242 | pm_card_visa |
| Visa (debit) | 4000056655665556 | pm_card_visa_debit |
| Mastercard | 5555555555554444 | pm_card_mastercard |
| Amex | 378282246310005 | pm_card_amex |
| Declined | 4000000000000002 | pm_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.
curl https://api.stripe.com/v1/payment_intents \
-u sk_test_xxx: \
-d amount=2000 \
-d currency=usd \
-d "payment_method_types[]"=card
| Type | Use Case | Fund Flow | |------|----------|-----------| | Direct charges | SaaS platforms | Customer → Connected Account → Platform fee | | Destination charges | Marketplaces | Customer → Platform → Connected Account | | Separate charges & transfers | Complex splits | Customer → Platform → Multiple accounts |
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});
});
| Exception Class | HTTP | Cause |
|----------------|------|-------|
| CardError | 402 | Payment declined / card issue |
| InvalidRequestError | 400 | Wrong parameters or invalid state |
| AuthenticationError | 401 | Bad API key |
| RateLimitError | 429 | Too many requests |
| APIConnectionError | - | Network failure |
| APIError | 500 | Stripe server error |
| IdempotencyError | 400 | Mismatched idempotency key |
| PermissionError | 403 | Restricted key lacks permissions |
| SignatureVerificationError | - | Invalid webhook signature |
api-keys-auth.md - API keys, authentication, security best practices, key managementerror-handling.md - Error types, exception handling patterns, test cards for errorswebhooks.md - Webhook setup, signature verification, event handling, testing, best practicestesting.md - Sandbox environment, test card numbers by brand/country, PaymentMethods, going liveconnect-overview.md - Connect platform design, account types, charge types, onboarding, payoutsconnect-charges.md - Direct/destination/separate charges, platform fees, fund flowdevelopment-essentials.md - SDKs, expanding objects, pagination, idempotency, versioning, metadatadevelopment
WonderTrader/wtpy 量化交易开发综合指南,整合官方文档、社区笔记与实践案例。涵盖 wtpy Python 框架与 WonderTrader C++ 核心的策略开发、回测、仿真、实盘、数据管理、监控运维全流程。
development
TianQin SDK (tqsdk) - Python量化交易框架,用于期货/期权/股票交易策略开发、回测与实盘交易
development
Seedance 1.5/1.0 系列视频生成 API 文档(火山方舟平台)。用于通过 API 调用 Seedance 模型实现文生视频、图生视频(首帧/首尾帧/参考图)、有声视频生成等功能,包含完整的请求参数、SDK 示例、提示词技巧和错误码参考。
development
RiceQuant RQData Python API - 米筐金融数据Python接口,用于获取中国A股、港股、期货、期权、基金、债券、宏观经济和另类数据。当使用rqdatac编写量化交易和金融分析Python代码时使用此skill。