Stripe Integration

Implement Stripe payments, webhooks, and subscriptions correctly first time

breverdbidder 92c734f 855 B Updated

File contents

Stripe Integration

Consistent Stripe implementation following best practices.

Key Components

Payment Flows

  • Checkout sessions
  • Payment intents
  • SCA/3DS handling

Webhooks (Critical)

  • checkout.session.completed
  • customer.subscription.created/updated/deleted
  • invoice.paid/payment_failed

Subscriptions

  • Products and prices
  • Lifecycle management
  • Trial periods

Security Checklist

  • API keys as environment variables
  • Webhook signatures validated
  • Server-side amount calculations
  • HTTPS for all requests

Usage

"Use Stripe integration skill to add monthly/annual subscriptions"

Webhook Testing

stripe listen --forward-to localhost:3000/api/webhooks/stripe

breverdbidder/brevard-bidder-landing/tree/main/.claude/skills/stripe-integration commit 92c734fbdc

Frequently asked questions

npx skillmds@latest add breverdbidder/stripe-integration