in reply to Re^6: receiving btc payments
in thread receiving btc payments

You don't seem to understand the flow of your own code, you check totalReceived on a fixed address, not a unique address per transaction. How do you imagine this makes any sense? You aren't validating that people have actually paid you what you think, in addition to all the other issues previously discussed. You need to learn more about blockchains and transactions, and address the other issues already raised.

Replies are listed 'Best First'.
Re^8: receiving btc payments
by bigup401 (Pilgrim) on Dec 07, 2018 at 21:26 UTC

    thanks for correction. i never saw this. coz was on my testing platform not production. and alot of tabs of codes opened on my notepad++. so was kind of confused

    its solved by

    $doLink = 'https://insight.bitpay.com/api/addr/$wallet/?noTxList=1';

      https://api.blockchain.info provides all the functionality you need, no requirement for bitpay. Now you just have to address the other issues.

        yes i know. bt there several issues with blockchain. i know this can be done with blockchain balance_update api. am sure i know blockchain,block io, bitpay. so i have reason why to use bitpay to check payment

      that's not what you intended, combining single quotes and variables... use double quotes or string concatenation,

      A reply falls below the community's threshold of quality. You may see it by logging in.