Bitcoin Forum
April 25, 2019, 03:59:03 AM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: blockchain.info api not working  (Read 2135 times)
doktokto
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 17, 2015, 12:32:40 PM
 #1

When I'm using
https://blockchain.info/api/api_receive
and input my Receiving Address and Callback URL, after pressing "Fire Test Callback" I'm receiving callback.
When I'm writing my Callback URL in "Check Callback Response Log" and trying to send callback there is error:
"Error Input String May Contain HTML".

I thought it's not nessecary and generated payment address in my site using their api. I used all as in example. I paid 2 transactions:
https://blockchain.info/tx/3053d732c0c2f039db2c285fabdd5b8e39709d6256ea76b7275bc63d1a63be55
https://blockchain.info/tx/45ec621336205150e893443e13d73fdc7944c5a6604fd51ef44d5627d0cfe65d

And I still don't recieved them, and don't get any callbacks.

What can be wrong with this api? Is it works properly or I'm just wasting my time and my money?

Code that I used to make payment address:

Code:
<?php
$partner 
$_POST['partner'];
$itemType $_POST['itemType'];
$itemsCount $_POST['itemsCount'];
$USDPrice $_POST['USDPrice'];
$USDPriceWithFee round($USDPrice 100 105 100002PHP_ROUND_HALF_UP);
$BitCoinPrice round(file_get_contents("https://blockchain.info/tobtc?currency=USD&value=" $USDPriceWithFee),5,PHP_ROUND_HALF_UP) + 0.00001;

$needToPayInBTC sprintf('%f'$BitCoinPrice);

$my_address '18XuXWHA8BF6uLhwXDHqkWx6PPAKQC9Joh';

$my_callback_url 'http://my-site.com/BTC.php?partner='.$partner// my site have "-" in name if it important

$root_url 'https://blockchain.info/api/receive';

$parameters 'method=create&address=' $my_address .'&callback='urlencode($my_callback_url);

$response file_get_contents($root_url '?' $parameters);

$object json_decode($response);

echo 
'Chosen item: ' $itemType ."<br>";
echo 
'Items count: ' $itemsCount ."<br><br>";
echo 
'Need to pay (BTC): ' $needToPayInBTC ."<br><br>";

echo 
'If all correct send payment to: ' $object->input_address;
?>

1556164743
Hero Member
*
Offline Offline

Posts: 1556164743

View Profile Personal Message (Offline)

Ignore
1556164743
Reply with quote  #2

1556164743
Report to moderator
100% New Software
PC, Mac, Android, & HTML5 Clients
Krill Rakeback
Low Rake
Bitcoin Poker 3.0
Bad Beat Jackpot
SwC Poker Relaunch
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
mtaracing
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
March 01, 2015, 11:01:38 AM
 #2

I found a solution to the problem, I agonized for two days.
The minimum transaction size is 0.0005 BTC.

HAVE FUN BRO!!!!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!