Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #4874

    Hi guys,

    Great plugin.

    We were wondering if it’s possible to tie in some custom functionality we have with the wallet system.

    When the user clicks “Buy now”, we’d like to debit £5 from the user’s wallet.
    This works fine using woo_wallet()->wallet->debit($user_id, 1, ‘Product Highlight for ‘.$product_id.”);

    However, we don’t get any errors if the user has no balance. Is there a way to get an error response?


    This function will return transaction Id if successful else will return false.

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



Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.


get a quote