• Resolved cadokadaj

    (@cadokadaj)


    Hello how are you?

    I made a little code to convert a token I have to cash, and I would like the result of this conversion to be added to the wallet,

    I realized that just adding a record in the wp_woo_wallet_transactions table is not enough to update the wallet balance automatically,

    I tried to call the “credit” function passing the arguments credit($user_id,$valuetoadd,$details);
    but it didn’t work, I would like to know if there is any way to update the balance after I make this input in the database, or if there is a way for me to use the credit function to make the input and update the balance.

    thank you so much!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter cadokadaj

    (@cadokadaj)

    I was reading the support threads and found the following code that worked.

    woo_wallet()->wallet->credit ($user_id, $amount, $description);

    ty

Viewing 1 replies (of 1 total)

The topic ‘Conversion system’ is closed to new replies.