AgentSkillsCN

payments

在“枯燥的 JavaScript 技术栈”中,运用支付与订阅模式——Sails.js 中的 sails-pay 钩子配合 Lemon Squeezy,打造结账流程、管理订阅、设置 Webhook,以及构建客户门户。在 Sails.js 应用程序中实施计费、订阅或支付处理时,可使用此技能。

SKILL.md
--- frontmatter
name: payments
description: >
  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.
metadata:
  author: sailscastshq
  version: '1.0.0'
  tags: payments, billing, subscriptions, lemon-squeezy, sails-pay, checkout, webhooks, boring-stack

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: