stripe-integration

Implement Stripe checkout, webhooks, and subscriptions in Next.js.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dvorkinguy/claude-skills-agents --skill stripe-integration-dvorkinguy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe-integration
Source: https://github.com/dvorkinguy/claude-skills-agents/tree/main/skills/stripe-integration
Command: npx skills add https://github.com/dvorkinguy/claude-skills-agents --skill stripe-integration-dvorkinguy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides patterns and examples for Stripe-based checkout, webhooks, and subscription flows, with secure patterns for Next.js integrations.

Core Features & Use Cases

  • Checkout session creation and customer handling
  • Webhook verification and secure processing
  • Subscription lifecycle management and event handling
  • Security best practices for webhooks and raw body handling

Quick Start

  1. Install Stripe libraries and set environment variables
  2. Implement webhook route using the provided templates
  3. Test with Stripe CLI and forward webhooks to your endpoint

Frequently Asked Questions about stripe-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Stripe payment processing for a Next.js SaaS application?

Stripe payment processing in Next.js requires installing Stripe libraries, configuring environment variables with your API keys, and implementing webhook routes with raw-body verification for secure event handling. This Skill provides templates for checkout sessions, customer handling, and subscription lifecycle management across your client-server architecture.

How do I verify and process Stripe webhooks securely?

Secure webhook processing requires signature validation using Stripe's signing secret, raw-body access for verification, and idempotent handling to prevent duplicate event processing. This Skill covers webhook route setup, signature validation patterns, and safe event processing for subscription and payment events.

What's the best way to handle subscriptions and recurring payments with Stripe?

Subscription management with Stripe involves creating checkout sessions with price IDs, validating prices server-side, handling subscription lifecycle events through webhooks, and maintaining customer records. This Skill provides patterns for end-to-end subscription flows including setup, updates, and cancellation events.

Can I use Stripe webhooks with Next.js API routes?

Yes. Next.js API routes work with Stripe webhooks when you configure raw-body middleware, validate signatures against Stripe's signing secret, and implement idempotent event handling. This Skill includes webhook route templates designed for Next.js server-side patterns.

What security considerations are critical for Stripe integration?

Critical security requirements include environment variable configuration for API keys, raw-body webhook verification to prevent tampering, signature validation, safe price ID validation, and Stripe API versioning consistency. This Skill enforces these patterns to prevent common integration vulnerabilities.

Why is raw-body access important for Stripe webhook verification?

Raw-body access is essential because Stripe signature validation requires the exact request body bytes received from Stripe's servers. If the body is parsed or modified before verification, the signature check fails and webhooks become unverifiable. This Skill ensures raw-body handling is configured correctly.