SaaS Payment Patterns
Implements robust, provider-agnostic billing systems including subscription lifecycles, webhook security, and complex pricing models.
This skill provides a comprehensive set of production-ready patterns for handling payments and subscriptions in SaaS applications. It offers a provider-agnostic abstraction layer compatible with Stripe, Paddle, or LemonSqueezy, ensuring business logic remains decoupled from specific billing APIs. Key features include secure webhook handling with signature verification and idempotency, automated dunning flows for failed payment recovery, multi-tier pricing calculations, and integrated tax handling. It is an essential resource for developers building scalable, reliable billing infrastructure that supports various subscription states and global compliance requirements.