Documentation In Progress
Content may be inaccurate or incomplete. For reliable help, contact support or join Discord
How cash and credit budgets work, validation logic, automatic adjustments, and budget tracking in buylist orders.
Budget management allows store owners to set spending limits for cash and credit purchases. When enabled, the system validates orders against budget limits and can automatically adjust payment types if one budget is exceeded. Budgets are tracked separately and updated as orders are completed.
buylistConfig.config.budgetsEnabled = truecashBudget to total amount available for cash purchasescreditBudget to total amount available for credit purchasescashBudgetUsed and creditBudgetUsed (initially 0)UserModel.buylistConfig.config objectvalidateAndAdjustBudget() function$inc operator to increment used amountscashBudgetUsed += finalTotalCashcreditBudgetUsed += finalTotalCreditTo reset budgets (e.g., at start of new month or period):
cashBudgetUsed = 0 and creditBudgetUsed = 0cashBudget and creditBudget to new limits