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

i really dont understand wat your saying. but i dont track transaction i only check if payment has been sent to the specific address using bitpay api then it print that we got payment and do the rest

still if payment is not equal to wat we want. it will still be in not yet received payment. until we get actual payment we want. but u can see that in the script. just pest me the line of code has problem i see

Replies are listed 'Best First'.
Re^7: receiving btc payments
by marto (Cardinal) on Dec 07, 2018 at 21:13 UTC

    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.

      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.

        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.