Billing
Credits, billing, and plans
DivusArgali Canvas uses credit packs, a current balance cache, and an immutable ledger to support paid generation safely.
Core billing model
The balance shown to the user is only the current state. The source of truth is the credit ledger, which records purchases, deductions, refunds, and admin adjustments with explicit status.
Why the ledger matters
Real billing needs auditability. If a generation request fails after a deduction, the ledger must record the refund. If an admin compensates a user, the adjustment must be traceable later.
Purchase flow
The public pricing page shows one-time credit packs. Orders are created in pending state, then Stripe checkout confirms payment, and a webhook finalizes order status and credits the account.