PHP Warning: file_get_contents(https://sandbox.ebanx.com/ws/request): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
in /data/aa/aa/vendor/ebanx/ebanx/src/Ebanx/Http/Client.php on line 154
PHP Fatal error: Uncaught RuntimeException: Bad HTTP request: in /data/aa/aa/vendor/ebanx/ebanx/src/Ebanx/Http/Client.php:166
Stack trace:
#0 /data/aa/aa/vendor/ebanx/ebanx/src/Ebanx/Command/AbstractCommand.php(91): Ebanx\Http\Client->send()
#1 /data/aa/aa/vendor/ebanx/ebanx/src/Ebanx/Ebanx.php(64): Ebanx\Command\AbstractCommand->execute(Array)
#2 /data/aa/aa/vendor/ebanx/ebanx/examples/checkout.php(11): Ebanx\Ebanx::__callStatic('doRequest', Array)
#3 {main}
thrown in /data/aa/aa/vendor/ebanx/ebanx/src/Ebanx/Http/Client.php on line 166
Hi, This SDK has a bug.
How to reproduce the bug
Set key to the file. example/bootstrap.php
run
php checkout.php
How to fix that.
Open & find function send in Client.php file.
change $context http -> header array to
:)