Open dcentrica opened 4 years ago
I am currently developing a BTCPay extension for CiviCRM and I am having this exact same issue. Are there any updates on this? Are you interested in making a pull request for it or should I?
I am currently developing a BTCPay extension for CiviCRM and I am having this exact same issue. Are there any updates on this? Are you interested in making a pull request for it or should I?
Feel free. The maintainers are aware that the PHP setup scripts need to be overhauled.
Given a BTCPay instance URL of:
https://testnet.demo.btcpayserver.org/
then the logic inClient.php:639
will returnnull
. One can argue that PHP's port sniffing capabilities leave something to be desired, or we can workaround this:Assuming port acquisition is really needed, then some simple logic to determine the correct port to use from the scheme should be implemented, or a suitable default e.g.
443
.Otherwise, some hints in the docs that a port should be included in the host URL in library config, should be added. Having said that, it is possible (but not probable) that userland https schemes might be used while stipulating port 80...