Back to skills
SKILL.md
Stripe Api Integration
ASecurityComplete Stripe API integration for payments, subscriptions, checkout, invoices, webhooks, Connect, Issuing, Terminal, and Treasury.
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added November 11, 2026
Works with
Security analysis
96/100- Uses curl or wget to download content
Pro scans all 12 files and shows the line behind each finding
npx -y skills add johnalbertini14-glitch/openclaw-skills --skill stripe-api-integration --agent claude-codeAre you the author of Stripe Api Integration?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/johnalbertini14-glitch-stripe-api-integration)---
name: Stripe API Integration
slug: stripe-api-integration
version: 1.0.2
homepage: https://clawic.com/skills/stripe-api-integration
description: Complete Stripe API integration for payments, subscriptions, checkout, invoices, webhooks, Connect, Issuing, Terminal, and Treasury.
changelog: Use ~/stripe-api-integration/ as config path (matching slug).
metadata: {"clawdbot":{"emoji":"๐ณ","requires":{"env":["STRIPE_SECRET_KEY","STRIPE_WEBHOOK_SECRET"],"config":["~/stripe-api-integration/"]},"primaryEnv":"STRIPE_SECRET_KEY","os":["linux","darwin","win32"]}}
---
# Stripe API Integration
Complete Stripe API reference. See auxiliary files for detailed operations.
## Quick Start
```bash
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
| Topic | File |
|-------|------|
| Setup & memory | `setup.md`, `memory-template.md` |
| Payments, refunds, disputes | `payments.md` |
| Customers, products, prices | `customers.md` |
| Subscriptions, usage billing | `subscriptions.md` |
| Checkout Sessions | `checkout.md` |
| Connect (marketplaces) | `connect.md` |
| Webhooks & events | `webhooks.md` |
| Invoices, quotes, tax | `invoices.md` |
| Issuing, Terminal, Treasury, Identity, Radar | `advanced.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_`)
```bash
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
| Endpoint | Purpose |
|----------|---------|
| `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 <slug>` 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`
Files in this skill
- SKILL.md
- _meta.json
- advanced.md
- checkout.md
- connect.md
- customers.md
- invoices.md
- memory-template.md
- payments.md
- setup.md
- subscriptions.md
- webhooks.md
Attribution
Related skills
View all in security โComments
Loading commentsโฆ
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.