Open extra topbar

tfontoura

If you are new here, please see some information on how to ask for support. Thank you!

tfontoura

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • in reply to: api #5616

    tfontoura
    Participant

    Same here when including API key: [wallets_exchange_api_key].

    in reply to: Retrieving user from querystring #5603

    tfontoura
    Participant

    Perfect! Thanks!

    in reply to: No trigger from action hooks #5495

    tfontoura
    Participant

    Solved, my bad: I was directing the cron script to another development node with same application. In order to trigger transactions as I was planning, I *must* use only one node for completing transactions via curl /?__wallets_action=do_cron&__wallets_apiversion=3&__wallets_cron_nonce=XXXX
    I hope this thread can help somebody else with same issue.

    in reply to: No trigger from action hooks #5491

    tfontoura
    Participant

    Custom plugin code (headers removed):

    function my_action_wallets_move_receive( $data ) {

    error_log( print_r( $data, true ) ); // prints out a stdClass object

    $file="/var/www/html/txs/logs/wallets_move_receive-tx-". date('Y-m-d') .".logfile";

    if (!file_exists($file))
    {
    // create file
    file_put_contents($file, " ", FILE_APPEND);
    chmod($file,0660);
    }

    file_put_contents( $file,print_r( $data, true ),FILE_APPEND );
    }

    //add_action( 'wallets_move_receive', 'my_action_wallets_move_receive' ,1,1);
    add_action( 'wallets_move_receive', 'my_action_wallets_move_receive');

    in reply to: New TX hook #5445

    tfontoura
    Participant

    All internal transfers show status as “pending” ([status] => pending) in action wallets_move_receive object. Is that normal behavior? Can I trust it is completed, if I’m only using “user confirmations”?
    Example output (action is triggered after the sender click her email link):

    stdClass Object
    (
    [id] => 15
    [blog_id] => 1
    [category] => move
    [tags] => receive move
    [account] => 2
    [other_account] => 1
    [address] =>
    [extra] =>
    [txid] => move-5c2ce304e702c0.16043110-receive
    [symbol] => LTCT
    [amount] => 1.4500000000
    [comment] => test4
    [created_time] => 2019-01-02 16:12:52
    [updated_time] => 2019-01-02 16:12:52
    [confirmations] => 0
    [status] => pending
    [retries] => 1
    [admin_confirm] => 0
    [user_confirm] => 1
    [nonce] =>
    [user] => WP_User Object

    I apologize for all these questions, but maybe answers could help other users as well.
    Thanks a lot.

    in reply to: New TX hook #5442

    tfontoura
    Participant

    Oh, I see the available WP actions now, they are at the bottom of page 36 of the PDF. Sorry for not noticing them before.

    in reply to: New TX hook #5440

    tfontoura
    Participant

    Interesting, it seems wallets_transaction doesn’t show transfers between users, so it’s not good for logging all transactions as I thought.
    Well, I’ll check wallets_deposit.

    in reply to: New TX hook #5437

    tfontoura
    Participant

    Alex, I’m using your first suggestion to create a log of all transactions, so in case something goes wrong with the database, I have the logs to rebuild lost transactions. But for the examples I pointed out in this post, your second suggestion is better. Thanks!

    in reply to: New TX hook #5431

    tfontoura
    Participant

    That’s perfect, exactly what I was looking for!
    Thanks and Happy New Year to you too!

    in reply to: Currency symbols and localization #5413

    tfontoura
    Participant

    Solved the symbol issue by utilizing filters as per PDF page 30. Still have to find out how to change to the European format.

    in reply to: Currency symbols and localization #5412

    tfontoura
    Participant

    It seems the following wp function found at https://codex.wordpress.org/Function_Reference/number_format_i18n would do the European formatting trick:
    <?php number_format_i18n( $number, $decimals ); ?>
    But I’m not sure where I can use it so it is not overwritten by wallet updates.

    in reply to: Using TOR #5407

    tfontoura
    Participant

    In time: I don’t think TOR is safe for connecting to coinpayments API, as we must not restrict IP for that to work.
    So, regular SSL connection and strong password should be more secure than TOR in this scenario, in my opinion.

    in reply to: Using TOR #5406

    tfontoura
    Participant

    Ok, solved by changing line 60 of wallets-cp.php from

    const API_ENDPOINT_TOR_URL = 'https://coinpaymtstgtibr.onion/api.php';

    to
    const API_ENDPOINT_TOR_URL = 'http://coinpaymtstgtibr.onion/api.php';

    I suppose there are no official certs that curl could verify against for onion domains.

    in reply to: Only USD in coins list #5404

    tfontoura
    Participant

    Update: solved by entering Fixer.io API key under “Exchange rates”.

    in reply to: Coinpayment adapter #5382

    tfontoura
    Participant

    Is it possible to convert coins if they both are in coinpayments? I noticed their API has a ‘convert’ function.

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