Credits
Learn how to manage and use credits in your ShipNow application.
Overview
ShipNow's complete credit system enables you to:
- 💳 Manage user credits
- 🎁 Provide initial credits for new users
- 📅 Handle monthly, yearly and one-time purchase credits
- 🔄 Automatic renewal and expiration of credits
View Credits
Users can check their credit balance in the user dropdown menu:
Credits Sources
- Initial Credits: New users receive initial credits that are valid for one year from registration.
- Subscription Credits: Credits from monthly/yearly subscription that renew and expire monthly.
- One-time Purchase Credits: Credits from one-time purchases that expire after one month.
- Manual Credits: You can manually add credits and specify the expiration time.
Configure Initial Credits
Set the initial credit amount to .env.local
, credits are added automatically when a new user registers.
Configure Subscription/One-time Purchase Credits
Define Credit Amounts
Configure credits
in your pricing plans:
Subscription/One-time Purchase Credits
- Monthly Plans: Credits are renewed on next billing
- Yearly Plans: User pays for a year in advance, but credits are reset monthly
- One-time Purchase: Credits are added to the user's account immediately
🔥 Yearly Subscription Credit Reset Monthly
ShipNow features a monthly credit reset system for yearly subscriptions:
- User purchases yearly subscription plan
- User gets first month's credits immediately
- User can use credits
- Unused credits expire and new credits are added after 1 month
- Process repeats monthly until subscription ends
All credits are managed automatically by the system, you don't need to handle the credit expiration and renewal logic.
Credits API
Get Available Credits
Add Credits
Deduct Credits
Need Help?
- Join our Discord community
- Open an issue on GitHub