sailscastshq

payments

Payment and subscription patterns for The Boring JavaScript Stack — sails-pay hook with Lemon Squeezy, checkout flows, subscription management, webhooks, and customer portal. Use this skill when implementing billing, subscriptions, or payment processing in a Sails.js application.

sailscastshq 498 24 Updated 3mo ago

Resources

3
GitHub

Install

npx skillscat add sailscastshq/boring-stack/payments

Install via the SkillsCat registry.

SKILL.md

Payments

The Boring JavaScript Stack uses sails-pay with Lemon Squeezy as the payment provider. The Ascent templates include a complete billing system with plan-based subscriptions, checkout flows, webhook handling, and customer portal integration.

When to Use

Use this skill when:

  • Configuring sails-pay in config/pay.js (provider, plans, variants)
  • Implementing checkout flows with sails.pay.checkout()
  • Managing subscriptions (Subscription model, status lifecycle)
  • Handling Lemon Squeezy webhooks (signature verification, event processing)
  • Building billing settings pages with plan information
  • Checking subscription status with the checkPlan helper
  • Integrating Lemon Squeezy's hosted customer portal

Rules

Read individual rule files for detailed explanations and code examples: