The all-in-one starter kit for building SaaS applications with local payment integrations for the African market.
- Secure user management and authentication with Supabase
- Powerful data access & management tooling on top of PostgreSQL with Supabase
- Integrated payment processing with Paystack for:
- Local card payments
- Bank transfers
- USSD payments
- Mobile money (coming soon)
- Automatic syncing of pricing plans and subscription statuses via webhooks
- Team management and role-based access control
- Dark/light mode support
- Responsive dashboard UI with shadcn/ui
The template uses the following technology stack:
git clone https://github.com/yourusername/your-repo
cd your-repo
pnpm install
- Create a project at Supabase
- Run database migrations
- Set up auth providers
- Copy environment variables
- Create a Paystack account
- Get your API keys
- Set up webhook endpoint at
your-domain.com/api/webhooks
- Configure payment methods
Create a .env.local
file:
# Supabase
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
# Paystack
NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY=
PAYSTACK_SECRET_KEY=
# General
NEXT_PUBLIC_SITE_URL=
pnpm dev
The template handles payments through Paystack:
- User selects a plan
- Redirected to Paystack checkout
- Payment processing through:
- Local credit/debit cards
- Bank transfers
- USSD
- Mobile money (coming soon)
- Webhook handles subscription events
- Customer portal for subscription management
Paystack webhooks handle:
- Subscription creation
- Subscription updates
- Payment success/failure
- Subscription cancellation
Contributions welcome! Please:
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a PR
For questions, features, or support:
- Email: [email protected]
- Twitter: @yourhandle
MIT License