saas-payment-patterns
Payment provider abstraction, webhook security, subscription lifecycle, dunning flows, pricing models, invoicing, tax handling, and refund patterns for SaaS applications.
npx skills add vibeeval/vibecosystem --skill saas-payment-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# SaaS Payment Patterns Provider-agnostic payment patterns for subscription-based applications. Works with Stripe, Paddle, LemonSqueezy, or any billing provider. ## Payment Provider Abstraction Layer ```typescript // Abstract away the provider — swap Stripe for Paddle without touching business logic interface PaymentProvider { createCustomer(data: CreateCustomerDto): Promise<Customer> createSubscription(data: CreateSubscriptionDto): Promise<Subscription> cancelSubscription(subscriptionId: string, immediate?: boolean): Promise<void> createCheckoutSession(data: CheckoutDto): Promise<{ url: string }> issueRefund(paymentId: string, amountCents?: number): Promise<Refund> getInvoice(invoiceId: string): Promise<Invoice> verifyWebhookSignature(payload: string, signature: string): boolean } interface Customer { id: string; email: string; providerCustomerId: string } interface Subscription { id: string status: SubscriptionStatus planId: string currentPeriodEnd: Date cancelAtPeriodEnd: boolean } type SubscriptionStatus = 'trialing' | 'active' | 'past_due' | 'canceled' | 'expired' // Provider implementation (Stripe example) class StripePaymentProvider implements PaymentProvider { constructor(p
- Payment Provider Abstraction Layer
- Webhook Security
- Subscription Lifecycle
- Dunning Flow (Failed Payment Recovery)
- Pricing Model Patterns
- Invoice and Receipt Generation
- Tax Handling (VAT/GST)
- Refund and Proration
- Webhook Event Routing
- Common Pitfalls
What does the saas-payment-patterns skill do?
Payment provider abstraction, webhook security, subscription lifecycle, dunning flows, pricing models, invoicing, tax handling, and refund patterns for SaaS applications.
How do I install it?
Run `npx skills add vibeeval/vibecosystem --skill saas-payment-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From vibeeval/vibecosystem, a repository with 521 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
