Credits
Learn how to set up and use the credits system in your application
MkSaaS provides a flexible, modular credits system for rewarding users, enabling pay-per-use features, and supporting a variety of business models. This guide explains how to enable, configure, and use the credits system in your application.
Setup
To get started with the credits system, please follow the steps below to configure the necessary environment variables:
- Enable Credits in Configuration
- Open
src/config/website.tsxand locate thecreditssection. - Set
enableCredits: trueto enable the credits system. - Set
enablePackagesForFreePlan, only paid users can purchase extra credit packages by default, if set totrue, free users can also purchase credit packages. - Set
registerGiftCreditsto configure whether to give credits on registration, the number of credits to gift, and the expiration time.
- Open
MkSaaS Docs