@sonuverma,
You can use woo_wallet()->wallet->credit($user_id, $amount, $details); function to credit user wallet with perticular amount.
Cheers!!!
and how can we get current user wallet balance
what is $details
-
This reply was modified 7 years, 7 months ago by
sonuverma.
and for using this function we need to add any global variables
@sonuverma,
and how can we get current user wallet balance
to get current user wallet balance details you can call woo_wallet()->wallet->get_wallet_balance($user_id); function.
what is $details
This is transaction details note you can pass this value empty.
and for using this function we need to add any global variables
No needs to add any global variable.
Thank you!!!