Post
Topic
Board Bitcoin Technical Support
Re: Blockchain receive API and CloudFlare
by
piuk
on 10/10/2013, 11:39:15 UTC
For sure didn't exceeded limit... This is what I get on http://blockchain.info/api/api_receive while testing. Now my host has changed something (don't know what yet, I guess only enabled it from logs) and I am not  getting that error anymore.

..but on "Fire Test Callback" I do get this response: "Error Sending Notification". Check Callback Response Log: Incorrect Receiving Address (the one in their callback URL is same as in my files).

The thing is I am moving my website to another server and my code worked on previous server so I am not sure where is the problem. Money is being forwarded when paying on website but I can't debug why callback doesn't work..

"Incorrect Receiving Address" is an error generated by the php example (callback.php line 19).

Quote
if ($_GET['address'] != $my_bitcoin_address) {
   echo 'Incorrect Receiving Address';
  return;
}

If you have changed bitcoin addresses (or have multiple addresses) you will need to do something a long the lines of:

Quote
$my_addresses = array("1MyAddress", "1MySecondAddress");
if (!in_array($_GET['address'], $my_addresses)) {
   echo 'Incorrect Receiving Address';
  return;
}