hadyfayed/laravel-agent/laravel-cashier
Claude Code and agent skill by hadyfayed/laravel-agent
- community
Checking that the SKILL.md file is still in the repository.
Laravel Cashier billing — Stripe/Paddle subscriptions, trials, invoices, webhooks, payment methods, single charges, and customer portal. Use when implementing subscriptions, recurring billing, Stripe or Paddle integration, checkout flows, or payment webhook handling. Triggers: "cashier", "stripe", "paddle", "subscription", "billing", "payment", "invoice", "checkout", "pricing", "recurring payment", "payment method", "webhook".
Install
npx vskill@latest install hadyfayed/laravel-agent/laravel-cashierSKILL.md
The same SKILL.md was published earlier as hadyfayed/laravel-agent/laravel-cashier.
Laravel Cashier Skill
Implement subscription billing and payments with Laravel Cashier for Stripe or Paddle.
When to Use
- Setting up subscription billing
- Processing one-time payments
- Managing payment methods
- Creating pricing plans
- Handling invoices and receipts
- Managing customer portals
- Processing webhooks from Stripe/Paddle
- Implementing metered billing
- Building checkout flows
Quick Start
Conventions Checklist
Setup
- [ ] Add the
Billabletrait to the billable model (Stripe:Laravel\Cashier\Billable; Paddle:Laravel\Paddle\Billable) - [ ] Cast
trial_ends_attodatetime - [ ] Use Stripe price IDs (
price_xxx), not deprecated plan IDs (plan_xxx) - [ ] Store all amounts in cents (Cashier expects cents)
Subscriptions
- [ ] Name subscriptions (
newSubscription('default', $priceId)) and check withsubscribed('default') - [ ] Apply trials via
->trialDays(14) - [ ] Check status:
subscribed(),onTrial(),onGracePeriod(),pastDue(),incomplete() - [ ] Handle multiple subscriptions by name (
'default','premium') - [ ] Handle
IncompletePayment— redirect tocashier.paymentconfirmation
Payment Methods
- [ ] Use
createSetupIntent()+ Stripe.js for secure card collection - [ ]
addPaymentMethod(),updateDefaultPaymentMethod(),removePaymentMethod() - [ ] Never collect or store raw card numbers server-side
Webhooks
- [ ] Use Cashier's
WebhookController(verifies signatures) — never a raw route - [ ] Set
STRIPE_WEBHOOK_SECRET - [ ] Bypass CSRF on the webhook route (
withoutMiddleware(VerifyCsrfToken)) - [ ] Implement handlers:
subscription.created/updated/deleted,invoice.payment_succeeded/failed
Common Pitfalls
- Unverified webhooks — use Cashier's controller + webhook secret; never process without verification
- Missing webhook CSRF exception — webhook route must bypass CSRF
- Hardcoded price IDs — use config/env for price IDs (
price_xxx, notplan_xxx) - Not handling `IncompletePayment` — redirect to payment confirmation
- Wrong currency format — Cashier expects cents (
9999= $99.99, not99.99) - Not syncing Stripe customer — create the customer before the subscription
- Ignoring grace periods — allow access until period end; offer resume
- Missing failed-payment handling — implement
handleInvoicePaymentFailed - Testing with live keys — always use test keys in development
Best Practices
- Always use Stripe Checkout or Elements for PCI compliance
- Set up webhook forwarding (
stripe listen) during development - Send notifications for failed payments and provisioning events
- Provide a customer portal for self-service
- Use trial periods to increase conversions
- Handle incomplete subscriptions gracefully
- Log all webhook events and use metadata for tracking
- Implement proration for plan changes
Related Commands
/laravel-agent:webhook:make— create webhook handler skeletons
Related Skills
laravel-api— Build billing APIslaravel-queue— Process payments asynchronouslylaravel-testing— Test payment flowslaravel-security— Secure payment endpoints
Additional references
- Install / config / Billable model / subscriptions / single charges / payment methods → references/subscriptions.md
- Webhooks, invoices, checkout sessions, customer portal, Stripe CLI testing, Pest tests → references/webhooks-and-invoices.md
- Paddle setup, config, model variant, CSRF exception → references/paddle.md
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/laravel-cashier/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/laravel-cashier)