Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
oakoss avatar

Stripe Integration

  • 55 installs
  • 14 repo stars
  • Updated March 2, 2026
  • oakoss/agent-skills

Helps with ai & agent building tasks during AI-assisted development.

About

stripe-integration is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • stripe-integration
  • AI & Agent Building
  • AI-coding skill

Stripe Integration by the numbers

  • 55 all-time installs (skills.sh)
  • +2 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #6,781 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/oakoss/agent-skills --skill stripe-integration

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs55
repo stars14
Last updatedMarch 2, 2026
Repositoryoakoss/agent-skills

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

Stripe Integration

Overview

Stripe provides a complete payments platform with server-side SDKs (Node.js) and client-side libraries (Stripe.js, React Stripe.js). The Node.js SDK handles server operations like creating Payment Intents, managing Subscriptions, and verifying webhooks. The React Stripe.js library provides pre-built UI components (PaymentElement, Elements provider) for secure client-side payment collection.

When to use: One-time payments, recurring subscriptions, usage-based billing, marketplace payouts, hosted checkout pages, custom payment forms, webhook-driven fulfillment.

When NOT to use: Cryptocurrency payments (not supported), regions where Stripe is unavailable, simple static product sales without payment processing (use a hosted storefront).

Quick Reference

PatternAPIKey Points
Hosted checkoutstripe.checkout.sessions.create()Stripe-hosted page, supports payment, subscription, setup modes
Payment Intentstripe.paymentIntents.create()Server-side, returns client_secret for client confirmation
Confirm paymentstripe.confirmPayment({ elements, clientSecret })Client-side, requires Elements instance
Create subscriptionstripe.subscriptions.create()Use payment_behavior: 'default_incomplete' for SCA
Update subscriptionstripe.subscriptions.update()Set proration_behavior explicitly
Cancel subscriptionstripe.subscriptions.cancel()Use prorate: true to credit unused time
Customer Portalstripe.billingPortal.sessions.create()Self-service billing management, returns short-lived URL
Webhook verifystripe.webhooks.constructEvent()Requires raw body, signature header, and endpoint secret
Elements provider<Elements stripe={stripePromise} options={options}>Wraps payment components, pass clientSecret or mode
PaymentElement<PaymentElement />Renders all supported payment methods automatically
Retrieve + expandstripe.checkout.sessions.retrieve(id, { expand })Expand nested objects to reduce API calls
Searchstripe.paymentIntents.search({ query })Stripe Query Language for filtering

Common Mistakes

MistakeCorrect Pattern
Parsing webhook body as JSON before verificationUse express.raw({ type: 'application/json' }) to pass raw body to constructEvent
Hardcoding payment method typesUse automatic_payment_methods or let Checkout choose based on currency and region
Creating PaymentIntent client-sideCreate on server, pass only client_secret to client
Not awaiting elements.submit() before confirmCall elements.submit() first to trigger validation, then confirmPayment
Missing return_url in confirmPaymentAlways provide return_url for redirect-based payment methods
Using test keys in productionStore keys in environment variables, validate STRIPE_SECRET_KEY prefix (sk_live_ vs sk_test_)
Not handling requires_action statusCheck PaymentIntent status after confirmation, handle 3D Secure or other authentication
Creating Customer Portal session without settingsSave portal settings in Dashboard first, otherwise API returns an error
Not expanding related objectsUse expand parameter to include nested objects like latest_invoice.payment_intent
Ignoring webhook idempotencyUse event.id to deduplicate, webhook events can be delivered more than once

Delegation

  • Payment flow architecture: Use Explore agent to discover integration patterns
  • Webhook debugging: Use Task agent for end-to-end event tracing
  • Code review: Delegate to code-reviewer agent for security review of payment handlers

References

  • Checkout Sessions, Payment Intents, and one-time payments
  • Subscription lifecycle, pricing models, trials, and Customer Portal
  • Webhook endpoints, signature verification, and event handling
  • React Stripe.js, Elements provider, PaymentElement, and custom forms

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.