btcpayserver / btcpayserver-php-client

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

Fix namespace and make IPN callback work as it creates a new invoice … #48

Open ndeet opened 3 years ago

ndeet commented 3 years ago

…and fails with old Currency class.

Namespace was wrong as I was not aware that this repo is a clone with imports and some minor mods from the other bitpay php client repo.

Also fixed invoice creation that is triggeren on the IPN callback processing. We need to use the CurrencyUnrestricted class there to avoid making the Client fail because of currency symbol restrictions.

boooyu44 commented 3 years ago

+1

Having same warning from composer:

Class Bitpay\CurrencyUnrestricted located in ./vendor/btcpayserver/btcpayserver-php-client/src/BTCPayServer/CurrencyUnrestricted.php does not comply with psr-4 autoloading standard. Skipping.

Why is this PR not accepted yet?