Open j3dyy opened 3 years ago
$storageEngine = new EncryptedFilesystemStorage('<PASSWORD>');
$privateKey = $storageEngine->load('<PRIVATE KEY>');
$publicKey = $storageEngine->load('<PUBLIC KEY>');
$client = new Client();
$adapter = new CurlAdapter();
$client->setPrivateKey($privateKey);
$client->setPublicKey($publicKey);
$client->setUri('https://btcpayserverdomain:443');
$client->setAdapter($adapter);
$token = new Token();
$token->setToken($this->token);
$token->setFacade('merchant');
$client->setToken($token);
$invoice = $client->getInvoice($invoiceID);
$request = $client->getRequest();
$response = $client->getResponse();
echo (string)$request . PHP_EOL . PHP_EOL . PHP_EOL;
echo (string)$response . PHP_EOL . PHP_EOL;
print_r($invoice);
createInvoice works fine but when i'm trying to findInvoice i'm getting :
my request is
any suggestion what i'm doing wrong?