programmatically reducing balance for user2019-07-22T04:39:49+05:30

Home Forums Core programmatically reducing balance for user

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • tlawork
    Participant
    Post count: 1

    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?

    TODDL

    Subrata Mal
    Keymaster
    Post count: 166

    You can use our core function woo_wallet()->wallet->debit($user_id, $amount, $transaction_description); to deduct wallet balance.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.