add-payment

Implement Stripe subscriptions and billing flows with webhook signature verification.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/jnlanahan/Product-Agents-and-Skills --skill add-payment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-payment
Source: https://github.com/jnlanahan/Product-Agents-and-Skills/tree/main/skills/4-Build-Payments
Command: npx skills add https://github.com/jnlanahan/Product-Agents-and-Skills --skill add-payment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the guesswork and production risk of wiring up billing and subscriptions so customers can pay reliably and your app can react to events safely.

Core Features & Use Cases

  • Stripe-first payments wiring (test-mode): Installs Stripe dependencies and guides setup starting with sk_test_... keys.
  • Secure webhook handling: Implements required Stripe webhook signature verification and event idempotency.
  • Subscription and billing flows: Supports adding tiers, subscription updates, Customer Portal, and new webhook event handlers with correct verification and testing.

Quick Start

Run this Skill when you want to add Stripe billing to your app, for example by telling it: "Add a new $99/year subscription tier with Customer Portal and implement the related webhook handlers."

Frequently Asked Questions about add-payment

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

FAQPage Schema
How do I add Stripe subscriptions and secure webhooks to my application?

Stripe subscription billing requires installing Stripe dependencies and configuring checkout flows starting with sk_test_ keys. Implement webhook signature verification and event idempotency to safely process customer payments and subscription updates.

How do I handle Stripe webhook signature verification and idempotency for retried events?

Handling Stripe webhooks requires verifying webhook signatures to confirm event authenticity and applying idempotency checks for retried events. This prevents duplicate processing when Stripe resends events, ensuring your subscription billing data remains accurate and secure.

Can I use this to extend existing Stripe Checkout and Customer Portal patterns already in my codebase?

Yes, you can extend existing Stripe Checkout, webhook, and Customer Portal patterns already wired in your codebase. The implementation mirrors your current Stripe setup to add new subscription tiers, update billing flows, and register new webhook event handlers consistently.

What happens if a different payment processor is already detected in my application?

When a different payment processor is detected in your application, the Skill adapts the implementation approach accordingly. It ensures correct Stripe Customer Portal integration and billing flow setup while respecting existing payment infrastructure rather than blindly overwriting current processor logic.

Do I need to use Stripe test-mode keys when setting up subscription billing?

Yes, you must use strict test-mode keys, specifically sk_test_ prefixed keys, when setting up Stripe subscription billing. This ensures safe development and testing of checkout flows, webhook handlers, and Customer Portal integration before processing live payments.

What is the best way to add a new subscription tier with Customer Portal support?

The best way to add a new subscription tier with Customer Portal support is to configure the pricing tier in Stripe, integrate the Customer Portal for self-service management, and implement the related webhook event handlers with proper signature verification and testing.