S
S
Sergey2018-03-06 20:25:35
PHP
Sergey, 2018-03-06 20:25:35

Why doesn't blockchain.info api work?

I added the database, set everything up, it knocks out such an error after pressing the Bitcoin pay now button

Warning: file_get_contents(https://api.blockchain.info/v2/receive?key=11111111-32dd-408e-92a4-111111111&callback=https%3A%2F%2Fsite.com%2Fphp%2Fcallback.php%3Finvoice_id%3D991272%26secret%3D234r3r&xpub=xpub6C111111111111111111111111111UhhKpHQJ8z5rdnGkQGUGzsWfGj42VSGsTdg59x9fBewuJPrqKAdVgvH52bao6BH8QX): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/admin/web/site.com/public_html/php/create.php on line 13

Fatal error: Call to a member function bind_param() on boolean in /home/admin/web/site.com/public_html/php/create.php on line 19

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sisyukin, 2018-03-07
@Caarl

php.net/manual/ru/function.file-get-contents.php
Read about a possible warning , apparently the api returned a bad response

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question