блокчейн api_receive не работает

Я пытаюсь сделать простую платежную систему с блокчейн-системой, но я никогда не получаю платеж, а URL обратного вызова никогда не вызывается.

Вот мой код:

   $toPay = file_get_contents('https://blockchain.info/tobtc?currency=USD&value='.$plansPrice[$_POST['plan']]);
$address = '14DbDDvCWVm4o5L19sTG4E6qHuPF4pvgTH';
$callbackUrl = 'http://mydomain.one/buy.php?secret='.$secret.'&toPay='.($toPay * 100000000).'&time='.time().'&user='.urlencode($_SESSION['user']).'&plan='.$_POST['plan'];
$rootUrl = 'https://blockchain.info/api/receive';
$parameters = 'method=create&address='.$address.'&callback='.urlencode($callbackUrl);
$response = file_get_contents($rootUrl.'?'.$parameters);
$object = json_decode($response);
echo 'Send <input type="text" value="'.$toPay.'" style="width: 100px;"> BTC to: <input type="text" value="'.$object->input_address.'" style="width: 300px;"> payment will expire in 1 hour.';

Что я делаю неправильно?

1

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector