Home › Forums › Core › programmatically reducing balance for user
Tagged: withdraw by PHP
Lets say I have a daily subscription and I’d like to automatically charge $N wallet bucks per day that the person logs in.
How could I do that programatically – perhaps from a snippet or PHP addition?
You can use our core function woo_wallet()->wallet->debit($user_id, $amount, $transaction_description); to deduct wallet balance.