Loading...
Loading...
Stripe payment integration with Node.js SDK. Covers Checkout Sessions, Payment Intents, Subscriptions, Customer Portal, webhooks, and Stripe Elements. Use when implementing checkout flows, payment processing, subscription billing, webhook handlers, or payment forms with Stripe Elements. Use for stripe, payments, checkout, subscriptions, billing, webhooks, payment intents, stripe elements.
npx skill4agent add oakoss/agent-skills stripe-integration| Pattern | API | Key Points |
|---|---|---|
| Hosted checkout | | Stripe-hosted page, supports |
| Payment Intent | | Server-side, returns |
| Confirm payment | | Client-side, requires Elements instance |
| Create subscription | | Use |
| Update subscription | | Set |
| Cancel subscription | | Use |
| Customer Portal | | Self-service billing management, returns short-lived URL |
| Webhook verify | | Requires raw body, signature header, and endpoint secret |
| Elements provider | | Wraps payment components, pass |
| PaymentElement | | Renders all supported payment methods automatically |
| Retrieve + expand | | Expand nested objects to reduce API calls |
| Search | | Stripe Query Language for filtering |
| Mistake | Correct Pattern |
|---|---|
| Parsing webhook body as JSON before verification | Use |
| Hardcoding payment method types | Use |
| Creating PaymentIntent client-side | Create on server, pass only |
Not awaiting | Call |
Missing | Always provide |
| Using test keys in production | Store keys in environment variables, validate |
Not handling | Check PaymentIntent status after confirmation, handle 3D Secure or other authentication |
| Creating Customer Portal session without settings | Save portal settings in Dashboard first, otherwise API returns an error |
| Not expanding related objects | Use |
| Ignoring webhook idempotency | Use |
ExploreTaskcode-reviewer