stripe-payments

Implements Stripe Checkout Sessions, subscriptions, webhooks, and customer portal integrations in web apps.

1|Updated Aug 18, 2026
One-click install
npx skills add https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent --skill stripe-payments-scsm-unrestrict
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe-payments
Source: https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent/tree/main/frontend-engineer/skills/stripe-payments
Command: npx skills add https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent --skill stripe-payments-scsm-unrestrict

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Adding payments to a web app involves choosing between Stripe's many APIs, writing correct server-side integration code, and handling webhook signature verification — mistakes here cause failed charges or security holes. This Skill provides working integration code and decision guidance for the common Stripe payment patterns. ## Core Features & Use Cases - API Selection Guidance: A decision table maps your goal (one-time payment, embedded form, subscriptions, marketplace) to the right Stripe API, defaulting to Checkout Sessions as the fastest path. - Working Integration Code: Ready-to-adapt TypeScript for Checkout Sessions, subscription status checks, Customer Portal sessions, and pricing pages, covering both Node.js and Cloudflare Workers environments. - Verified Webhook Handling: Complete webhook handler with signature verification (including the Workers-specific constructEventAsync gotcha), event routing, and Stripe CLI local testing commands. - Use Case: You need to add a Pro plan subscription to your SaaS app. The Skill walks you through creating products and prices, building the checkout endpoint, linking Stripe customers to your users, and handling subscription lifecycle webhooks. ## Quick Start Add a Stripe subscription checkout with webhook handling to my web app using a monthly Pro plan.

Frequently Asked Questions about stripe-payments

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

FAQPage Schema
How do I add Stripe payments to a web app?

Start with Stripe Checkout Sessions, where Stripe hosts the entire payment page. Create a session server-side with the stripe npm package, then redirect the client to the returned URL. This is the fastest path to accepting one-time payments or subscriptions.

Which Stripe API should I use for subscriptions?

Use Checkout Sessions with mode set to 'subscription' for recurring billing. It handles the payment collection, and you manage lifecycle events like cancellations through webhooks. Embedded Payment Element forms are only needed if you want a fully custom checkout UI.

Why does Stripe webhook verification fail on Cloudflare Workers?

The synchronous constructEvent method uses Node.js crypto, which does not exist in the Workers runtime. Use constructEventAsync instead, which relies on the Web Crypto API and works in Workers environments.

How do I test Stripe webhooks locally?

Install the Stripe CLI, run stripe login, then use stripe listen --forward-to with your local endpoint URL. You can trigger test events like checkout.session.completed with the stripe trigger command.

How do I let customers manage their own Stripe subscription?

Create a Stripe Billing Portal session server-side with the customer ID and a return URL, then redirect the user to the session URL. Configure allowed actions like upgrades and cancellations in the Stripe Dashboard portal settings.