Agent skill · Security

saas-payment-patterns

Payment provider abstraction, webhook security, subscription lifecycle, dunning flows, pricing models, invoicing, tax handling, and refund patterns for SaaS applications.

vibeevalgithub.com/vibeevalGitHub ↗
claude-codeMIT
Install
npx skills add vibeeval/vibecosystem --skill saas-payment-patterns --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 17 KB
Bundled scripts: none
Path: skills/saas-payment-patterns/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 521
Language: C#

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Payment Provider Abstraction Layer
  2. Webhook Security
  3. Subscription Lifecycle
  4. Dunning Flow (Failed Payment Recovery)
  5. Pricing Model Patterns
  6. Invoice and Receipt Generation
  7. Tax Handling (VAT/GST)
  8. Refund and Proration
  9. Webhook Event Routing
  10. Common Pitfalls
More from vibecosystem
All skills →
About this skill
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.

Keep going