microck/ordinary-claude-skills/laravel-cashier-stripe
Claude Code and agent skill by microck/ordinary-claude-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Laravel Cashier (Stripe) - Subscription billing and payment processing
Install
npx vskill@latest install microck/ordinary-claude-skills/laravel-cashier-stripeSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as microck/ordinary-claude-skills/laravel-cashier-stripe.
Laravel Cashier (Stripe) Skill
Comprehensive assistance with Laravel Cashier (Stripe) development for subscription billing, payment processing, and Stripe integration in Laravel applications.
When to Use This Skill
This skill should be triggered when:
- Implementing subscription billing in Laravel applications
- Setting up recurring payments with Stripe
- Managing customer subscriptions, trials, and plan changes
- Processing one-time charges or invoices
- Handling Stripe webhooks and events
- Implementing checkout flows with Stripe Checkout
- Managing customer payment methods and cards
- Working with Stripe invoices and billing portals
- Setting up trial periods and proration logic
- Debugging Stripe integration issues in Laravel
Quick Reference
Installation and Setup
Configure Billable Model
Creating a Subscription
Checking Subscription Status
Managing Payment Methods
Swapping Subscription Plans
Single Charges and Invoices
Canceling Subscriptions
Working with Invoices
Billing Portal Integration
Customer Management
Key Concepts
Billable Model
The Billable trait adds subscription and payment functionality to your Eloquent models (typically User). It provides methods for creating subscriptions, processing charges, managing payment methods, and accessing invoices.
Subscriptions
Cashier manages recurring billing through subscriptions. Each subscription has:
- Name: Identifier like "default" or "premium"
- Price ID: Stripe price identifier (e.g., "price_monthly")
- Status: Active, trialing, canceled, incomplete, etc.
- Trial period: Optional trial days before charging
- Metered billing: Support for usage-based pricing
Payment Methods
Stripe payment methods represent stored payment credentials (cards, bank accounts). Cashier provides helpers to:
- Store payment methods securely via Setup Intents
- Set default payment methods for subscriptions
- Update and delete payment methods
- Handle payment method verification
Webhooks
Stripe sends webhook events for subscription changes, payment failures, invoice updates, etc. Cashier automatically handles common webhooks, but you can extend functionality by listening to specific events.
Checkout Sessions
Stripe Checkout provides a pre-built payment page. Cashier simplifies creating checkout sessions for subscriptions and one-time products, handling the complete payment flow with minimal code.
Invoices
Cashier provides access to Stripe invoices for both subscriptions and one-time charges. You can retrieve, preview, and download invoices as PDFs.
Reference Files
This skill includes comprehensive documentation in references/:
- other.md - Complete Laravel Cashier documentation covering:
- Installation and configuration
- Subscription management (create, swap, cancel, resume)
- Payment method handling and Setup Intents
- Single charges and invoicing
- Stripe Checkout integration
- Webhook handling and event processing
- Customer portal integration
- Tax ID management
- Testing strategies
Use view to read the reference file when you need detailed information about specific features.
Working with This Skill
For Beginners
Start by:
- Installing Cashier and running migrations
- Adding the
Billabletrait to yourUsermodel - Setting up environment variables (STRIPE_KEY, STRIPE_SECRET)
- Creating your first subscription with
newSubscription() - Testing with Stripe test mode API keys
Basic workflow:
For Intermediate Users
Focus on:
- Implementing complete checkout flows with Stripe Checkout
- Managing payment method changes and updates
- Handling subscription plan swaps and prorations
- Working with trial periods and grace periods
- Processing one-time charges alongside subscriptions
- Customizing invoice details and tax information
For Advanced Users
Explore:
- Webhook event customization and extended handling
- Metered billing and usage-based pricing
- Multi-plan subscriptions (multiple subscriptions per user)
- Customer balance and credit management
- Tax ID validation and compliance
- Advanced invoice customization
- Stripe Connect integration for marketplaces
- Testing strategies for subscription flows
Navigation Tips
- Start with the Quick Reference section for common tasks
- Check Key Concepts to understand core Cashier terminology
- Use
references/other.mdfor complete implementation details - Reference the official Laravel Cashier docs at https://laravel.com/docs/12.x/billing for the latest updates
Environment Configuration
Required environment variables in .env:
Important: Use test mode keys (pk_test_, sk_test_) during development and switch to live keys (pk_live_, sk_live_) for production.
Common Patterns
Complete Subscription Checkout Flow
Upgrade/Downgrade Pattern
Payment Method Update Flow
Resources
Official Documentation
- Laravel Cashier (Stripe): https://laravel.com/docs/12.x/billing
- Stripe API Documentation: https://stripe.com/docs/api
- Stripe Testing Guide: https://stripe.com/docs/testing
Testing
Use Stripe test card numbers for development:
- Success:
4242 4242 4242 4242 - Decline:
4000 0000 0000 0002 - Requires authentication:
4000 0025 0000 3155
Always use test mode API keys during development and testing.
Notes
- Cashier requires PHP 8.1+ and Laravel 10.0+
- Always configure webhooks in production for reliable subscription management
- Use Stripe test mode during development
- The Billable trait can be added to any Eloquent model, not just User
- Cashier handles most webhook events automatically
- Consider using Stripe's billing portal for customer self-service
- Reference files preserve structure and examples from official Laravel docs
- Test subscription flows thoroughly before going to production
Updating
This skill is based on Laravel Cashier for Laravel 12.x. For the latest information, refer to the official documentation at https://laravel.com/docs/billing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills_all/laravel-cashier-stripe/SKILL.md
Popularity
- Repository stars
- 313
- Repository forks
- 44
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
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/microck/ordinary-claude-skills/laravel-cashier-stripe)