Situation Detection
| Context |
Load |
| Choosing Stripe vs Paddle vs LemonSqueezy |
providers.md |
| Implementing checkout, webhooks, refunds |
integration.md |
| Subscription billing, trials, upgrades |
subscriptions.md |
| PCI compliance, fraud prevention |
security.md |
Universal Rules
Never store card data. Use provider-hosted checkout or tokenization. PCI compliance burden explodes the moment raw card numbers touch your server.
Webhooks are truth. Client-side success callbacks lie. A payment succeeded only when your webhook confirms it. Design for webhook-first verification.
Test mode exists for a reason. Use test cards, simulate failures, verify webhook handling. Production surprises cost real money and real customers.
Pricing psychology: $9.99/mo feels cheaper than $120/year, but annual retention is 2-3x higher. Default to annual with monthly option, not the reverse.
Provider Quick Compare
| Need |
Recommendation |
| US/global B2C |
Stripe (best docs, widest coverage) |
| SaaS selling to EU (VAT headache) |
Paddle, LemonSqueezy (merchant of record) |
| Simple product, no dev resources |
Gumroad, Lemonsqueezy hosted |
| Marketplace with splits |
Stripe Connect |
| High-risk or adult |
Specialized processors (CCBill, Epoch) |
See providers.md for detailed comparison.
Integration Checklist
Before going live:
Red Flags
- Storing CVV anywhere, ever → Instant PCI violation
- Trusting client-side payment confirmation → Fraud vector
- No retry logic for failed webhooks → Lost transactions
- Hardcoding prices in frontend → Easy manipulation
- Missing
cancel_at_period_end handling → Angry customers
When to Load More
| Situation |
Reference |
| Evaluating payment processors |
providers.md |
| Building checkout, handling webhooks |
integration.md |
| Recurring billing, metering, trials |
subscriptions.md |
| Fraud, PCI, chargebacks |
security.md |
1---
2name: payments
3description: Integrate payments with provider selection, checkout flows, subscription billing, and security best practices.
4metadata:
5 source: https://skillmd.com/skills/modbender/payments
6---
7
8## Situation Detection
9
10| Context | Load |
11|---------|------|
12| Choosing Stripe vs Paddle vs LemonSqueezy | `providers.md` |
13| Implementing checkout, webhooks, refunds | `integration.md` |
14| Subscription billing, trials, upgrades | `subscriptions.md` |
15| PCI compliance, fraud prevention | `security.md` |
16
17---
18
19## Universal Rules
20
21**Never store card data.** Use provider-hosted checkout or tokenization. PCI compliance burden explodes the moment raw card numbers touch your server.
22
23**Webhooks are truth.** Client-side success callbacks lie. A payment succeeded only when your webhook confirms it. Design for webhook-first verification.
24
25**Test mode exists for a reason.** Use test cards, simulate failures, verify webhook handling. Production surprises cost real money and real customers.
26
27**Pricing psychology:** $9.99/mo feels cheaper than $120/year, but annual retention is 2-3x higher. Default to annual with monthly option, not the reverse.
28
29---
30
31## Provider Quick Compare
32
33| Need | Recommendation |
34|------|----------------|
35| US/global B2C | Stripe (best docs, widest coverage) |
36| SaaS selling to EU (VAT headache) | Paddle, LemonSqueezy (merchant of record) |
37| Simple product, no dev resources | Gumroad, Lemonsqueezy hosted |
38| Marketplace with splits | Stripe Connect |
39| High-risk or adult | Specialized processors (CCBill, Epoch) |
40
41See `providers.md` for detailed comparison.
42
43---
44
45## Integration Checklist
46
47Before going live:
48- [ ] Webhook endpoint secured and verified
49- [ ] Idempotency keys on all charges
50- [ ] Failure states handled (declined, expired, insufficient)
51- [ ] Receipts and invoices configured
52- [ ] Refund flow tested
53- [ ] Subscription lifecycle events handled (upgrade, downgrade, cancel)
54- [ ] Currency handling explicit (store in cents/smallest unit)
55
56---
57
58## Red Flags
59
60- Storing CVV anywhere, ever → Instant PCI violation
61- Trusting client-side payment confirmation → Fraud vector
62- No retry logic for failed webhooks → Lost transactions
63- Hardcoding prices in frontend → Easy manipulation
64- Missing `cancel_at_period_end` handling → Angry customers
65
66---
67
68## When to Load More
69
70| Situation | Reference |
71|-----------|-----------|
72| Evaluating payment processors | `providers.md` |
73| Building checkout, handling webhooks | `integration.md` |
74| Recurring billing, metering, trials | `subscriptions.md` |
75| Fraud, PCI, chargebacks | `security.md` |