payments

Implements Stripe payment processing, subscription billing, and webhook handling for SaaS applications.

2|Updated Jun 8, 2026
One-click install
npx skills add https://github.com/lunaticwithaduck/easytech3d --skill payments-lunaticwithaduck
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: payments
Source: https://github.com/lunaticwithaduck/easytech3d/tree/main/.claude/skills/payments
Command: npx skills add https://github.com/lunaticwithaduck/easytech3d --skill payments-lunaticwithaduck

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires stripe, @stripe/react-stripe-js, micro.

What problem does it solve? Building payment and billing systems involves complex decisions around providers, pricing models, subscription lifecycles, and webhook reliability, and mistakes lead to lost revenue, duplicate charges, or PCI violations. ## Core Features & Use Cases - Provider & Pricing Guidance: Decision trees and comparison tables for choosing between Stripe, Paddle, and LemonSqueezy, plus pricing models like flat-rate, per-seat, tiered, and metered billing. - Implementation Patterns: Production-ready TypeScript code for Checkout Sessions, Payment Intents, subscription creation/upgrades/cancellation, metered usage reporting, refunds, and the Stripe Customer Portal. - Webhook Reliability: A complete webhook handler pattern with signature verification, idempotency via stored event IDs, and a table of must-handle events like invoice.payment_failed. - Use Case: A developer adding subscriptions to a SaaS app can follow the subscription lifecycle diagram, copy the setup code with trial periods, configure webhook handling with the Stripe CLI for local testing, and verify launch readiness with the pre-delivery checklist. ## Quick Start Ask the AI to implement a Stripe subscription checkout flow with webhook handling for a Next.js SaaS app.

Frequently Asked Questions about payments

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

FAQPage Schema
How do I implement Stripe subscriptions in a SaaS app?▼

Create a Stripe Customer per user, then create a Subscription with a Price ID and optional trial_period_days using payment_behavior 'default_incomplete'. Store the subscription ID and status in your database, and handle lifecycle events through webhooks.

Stripe vs Paddle vs LemonSqueezy for SaaS billing?▼

Stripe offers the most flexibility and best API at 2.9% + $0.30 but you handle tax/VAT yourself. Paddle and LemonSqueezy act as merchant of record and handle tax for you at 5% + $0.50, with less customization.

How do I handle Stripe webhooks securely in Next.js?▼

Disable the body parser and pass the raw request buffer to stripe.webhooks.constructEvent with your webhook secret to verify signatures. Store processed event IDs in the database to ensure idempotency and prevent duplicate processing.

How do I test Stripe webhooks locally?▼

Install the Stripe CLI, run 'stripe login', then 'stripe listen --forward-to localhost:3000/api/webhooks/stripe' to forward events. Use 'stripe trigger checkout.session.completed' to simulate specific events during development.

Why does Stripe webhook signature verification fail?▼

Verification fails when the request body is parsed before verification, since signatures require the raw body. Disable the framework's body parser for the webhook route and pass the raw buffer to constructEvent.

How do I implement metered or usage-based billing with Stripe?▼

Create a Price with recurring.usage_type set to 'metered' and an aggregate_usage mode like 'sum'. Report consumption by calling createUsageRecord on the subscription item with a quantity and timestamp whenever usage occurs.