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

Ignoring all the other issues, you can't even be following the code you wrote. You don't keep track of who has paid for what unless the transaction has hit the blockchain, each page refresh you throw everything away. This is unworkable as any form of payment system.

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

    yes i know. refreshing the page will send post request again and generate other receiving address. which i want to avoid thats why am just looking for other way. but other issues are not big issue as this is just a sample script. can be implemented

    my problem is only that. to avoid refreshing the page. i may find myself using ajax with loading gif to determine payment if received. but i didn't want to use ajax

      This doesn't address the problems discussed. Simple as you think, this isn't a viable payment script, you literally don't track anything until a transaction is confirmed on the blockchain (ignoring all other issues already mentioned associated with this).

        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