Getting Started
Next.js Integration
Complete setup for Next.js applications with server actions
Laravel Integration
Full integration guide for Laravel applications
Core Features
Checkout Sessions
Create secure checkout flows for products and subscriptions
Subscription Upgrades
Handle subscription plan upgrades with proration
Subscription Downgrades
Manage subscription downgrades and cancellations
Seat-Based Pricing
Implement team subscriptions with seat management
Prerequisites
Before following these guides, you’ll need:Polar Account
Sign up at polar.sh and create an organization.
API Authentication
All Polar API requests require authentication using your API key:SDK Libraries
Polar provides official SDK libraries for popular languages:Testing
Use Polar’s sandbox environment for testing:- Sandbox API Keys: Use
polar_sk_test_...keys for testing - Test Cards: Use Stripe test card numbers (4242 4242 4242 4242)
- Webhooks: Use webhook test mode or tools like ngrok for local testing
Common Patterns
Error Handling
All guides include comprehensive error handling examples:Webhooks
Many guides demonstrate webhook handling for async events:Customer Portal
Building customer-facing portals for subscription management:Next Steps
Choose a guide based on your use case:- New to Polar? Start with the Next.js or Laravel integration guide
- Adding checkout? See Creating Checkout Sessions
- Managing subscriptions? Check out Subscription Upgrades and Downgrades
- Team plans? Follow the Seat-Based Pricing guide
Support
Need help? We’re here for you:- Documentation: Browse the full API reference
- Discord: Join our Discord community
- Email: Contact [email protected]
- GitHub: Report issues at github.com/polarsource/polar