btcpayserver / btcpayserver-php-client

PHP implementation for the BTCPayServer cryptographically secure RESTful API
MIT License
29 stars 33 forks source link

Port 443 missed in clientURI in 002_pair.php #16

Open stxxo opened 5 years ago

stxxo commented 5 years ago

$client->setUri('https://my-btcpay-server.com'); Port 443 has to be inserted $client->setUri('https://my-btcpay-server.com:443');

to work properly in:

$client = new \BTCPayServer\Client\Client(); protected function createNewRequest() { $port = parse_url($this->uri, PHP_URL_PORT); $request->setPort($port); }

woutersamaey commented 5 years ago

Thanks, will look into it.

stxxo commented 5 years ago

welcome :) there are 443's missing in multiple files and also $key_dir = __DIR__ . '/tmp'; and $key_dir = '/tmp';

stxxo commented 5 years ago

sorry, closed this by mistake. But you have seen it, so I leave it as it is :)