# Stripe Subscriptions & Webhook Handling

> Stripe payment architecture patterns for SaaS subscriptions, tiered pricing, invoice receipts, and secure webhook signature verification.

Canonical: https://www.agentickit.co/skills/stripe-payments
Last updated: 2026-11-18

## Key practices
- Always verify Stripe webhook signatures using stripe.webhooks.constructEvent
- Process webhooks idempotently by saving event IDs to a processed_events table
- Handle customer.subscription.updated and invoice.payment_failed events explicitly
- Use Stripe Customer Portal for self-serve cancellation and payment method updates

## Related
- [integration-engineer](https://www.agentickit.co/agents/integration-engineer)
- [backend-architect](https://www.agentickit.co/agents/backend-architect)
- [/stripe-billing](https://www.agentickit.co/commands/stripe-billing)
- [/ship](https://www.agentickit.co/commands/ship)
