btcpayserver / btcpayserver-php-client

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

Exception occured: Status Code: 401; Unauthorized 003_createInvoice.php #20

Closed Gh0sTaR22 closed 4 years ago

Gh0sTaR22 commented 4 years ago

Hi guys,

I'm getting a 401 error Unauthorized when I try to create an Invoice using tutorial examples (script: 003_createInvoice.php) to my store at btcpayjungle. I run this scripts perfectly 001_generateKeys.php and 002_pair.php but when I try to run the file 003_createInvoice.php I got this error: Capture3

I copy the token created in file 002_pair.php.

I changed the ports and the type mistake get_Sheme() as you can see below. What is escaping me?

Ps: I already try to change the callback url but I had the same error.

Capture Capture1 Capture2

NicolasDorier commented 4 years ago

why did you close?