Hello. Any have got same problem with API blockchain.
My sales website to receive payments through Bitcoin. I use the API from blockchain service. But as members sending money in share wallet blockchain not handle btc to main wallet.
Any contribution will be welcome.
You can find information about the API here:
https://blockchain.info/en/api/api_receiveAs i understand the problem, your code generate a new Addy but it don't send the btc to your main wallet. If we take a look at the code we will see:
PHP Example$secret = 'ZzsMLGKe162CfA5EcG6j';
$my_address = '{YOUR BITCOIN ADDRESS}';
$my_callback_url = 'https://mystore.com?invoice_id=058921123&secret='.$secret;
$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 'Send Payment To : ' . $object->input_address;
And from the api we have:
https://blockchain.info/api/receive?method=create&address=$receiving_address&callback=$callback_url
$receiving_address Your Receiving Bitcoin Address (Where you would like the payment to be sent)
$callback_url The callback URL to be notified when a payment is received. Remember to URL Encode the callback url when calling the create method.
RESPONSE: 200 OK, APPLICATION/JSON
{
"fee_percent":0,
"destination":"1A8JiWcwvpY7tAopUkSnGuEYHmzGYfZPiq",
"input_address":"1KZoUuPWFAeyVySHAGqvTUDoX6P3ntuLNF",
"callback_url":"http://yoururl.com"
}
I would have to take a look on your site code to find the problem. I think the problem is the destination addy.