Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4874
    nebula.design
    Participant

    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?

    #4875
    subrata
    Keymaster

    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.

Login

Register

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.

WhatsApp

get a quote