_Method BTCPayServer\Client\Request::_toString() must not throw an exception, caught Error: Call to undefined method BTCPayServer\Client\Request::getSchema()"
File: Client/Request.php
There's typo in function getUriWithPort(). Should be getScheme() not getSchema(). Please fix it.
The library fails to create invoice while trying to migrate bitpay based project.
Error is triggered when creating invoice. When i fix this typo manually, all works.
/**
* @inheritdoc
*/
public function getUri()
{
return sprintf(
'%s://%s/%s',
$this->getScheme(), !!!!
$this->getHost(),
$this->getPath()
);
}
/**
* @inheritdoc
*/
public function getUriWithPort()
{
return sprintf(
'%s://%s:%s/%s',
$this->getSchema(), !!!!
$this->getHost(),
$this->getPort(),
$this->getPath()
);
}
_Method BTCPayServer\Client\Request::_toString() must not throw an exception, caught Error: Call to undefined method BTCPayServer\Client\Request::getSchema()"
File: Client/Request.php
There's typo in function getUriWithPort(). Should be getScheme() not getSchema(). Please fix it. The library fails to create invoice while trying to migrate bitpay based project. Error is triggered when creating invoice. When i fix this typo manually, all works.