← 返回
未分类 Key 中文

Stripe API Integration

Complete Stripe API integration for payments, subscriptions, checkout, invoices, webhooks, Connect, Issuing, Terminal, and Treasury.
完整的 Stripe API 集成,涵盖支付、订阅、结账、发票、webhook、Connect、Issuing、Terminal 和 Treasury。
ivangdavila
未分类 clawhub v1.0.2 1 版本 99441.3 Key: 需要
★ 0
Stars
📥 178
下载
💾 0
安装
1
版本
#latest

概述

Stripe API Integration

Complete Stripe API reference. See auxiliary files for detailed operations.

Quick Start

curl https://api.stripe.com/v1/balance -u "$STRIPE_SECRET_KEY:"

Setup

On first use, read setup.md. Preferences stored in ~/stripe-api-integration/memory.md.

When to Use

Any Stripe operation: payments, subscriptions, invoices, checkout, webhooks, Connect, Issuing, Terminal, Treasury.

Architecture

~/stripe-api-integration/
├── memory.md      # Account context
└── webhooks.md    # Webhook configs

Quick Reference

TopicFile
-------------
Setup & memorysetup.md, memory-template.md
Payments, refunds, disputespayments.md
Customers, products, pricescustomers.md
Subscriptions, usage billingsubscriptions.md
Checkout Sessionscheckout.md
Connect (marketplaces)connect.md
Webhooks & eventswebhooks.md
Invoices, quotes, taxinvoices.md
Issuing, Terminal, Treasury, Identity, Radaradvanced.md

Core Rules

  1. Test mode first — Use sk_test_* keys. Test card: 4242424242424242
  2. Amounts in cents — $10.00 = 1000
  3. Idempotency keys — Prevent duplicate charges
  4. Webhooks required — Never trust API response alone
  5. Expand objects — Use ?expand[]=customer for related data
  6. Pagination — Use starting_after for large lists
  7. Error handling — See payments.md for error codes

Authentication

Required environment variables:

  • STRIPE_SECRET_KEY — API key for all Stripe operations (starts with sk_test_ or sk_live_)
  • STRIPE_WEBHOOK_SECRET — Signing secret for webhook verification (starts with whsec_)
curl https://api.stripe.com/v1/customers -u "$STRIPE_SECRET_KEY:"

Common Traps

  • Amount in dollars not cents → 100x wrong charge
  • No idempotency key → duplicate charges
  • Skip webhook verification → accept fake events
  • Ignore requires_action → 3DS stuck

External Endpoints

EndpointPurpose
-------------------
https://api.stripe.com/v1/*API

Security & Privacy

Environment variables used:

  • STRIPE_SECRET_KEY — for API authentication
  • STRIPE_WEBHOOK_SECRET — for webhook signature verification

Sent to Stripe: Customer info, payment data via api.stripe.com

Stays local: API keys (never logged), ~/stripe-api-integration/ preferences

Never: Log card numbers, skip webhook verification, expose keys

Trust

This skill sends data to Stripe (stripe.com).

Related Skills

Install with clawhub install if user confirms:

  • api — REST API patterns
  • saas — SaaS metrics
  • webhook — Webhook patterns

Feedback

  • If useful: clawhub star stripe-api-integration
  • Stay updated: clawhub sync

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-12 05:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,363 📥 319,211
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,375
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 148,322