Plugin Hooks Available

Free plugin Active

Plugin Hooks Available

Started by nebula.design TeraWallet – Best WooCommerce Wallet System 2 years, 6 months ago

Conversation

2 posts · 2 voices
Viewing 2 posts - 1 through 2 (of 2 total)
  • October 18, 2023 at 4:53 pm #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?

  • Staff reply October 18, 2023 at 5:00 pm #4875

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

Viewing 2 posts - 1 through 2 (of 2 total)

Post a reply

Paste the exact error, your WooCommerce + WordPress versions, and any relevant steps. Screenshots help.

Sign in to reply

You must be logged in to reply to this topic.

Still stuck?

Three fast ways to keep moving if the thread above didn't resolve it.