Open vncastanheira opened 4 years ago
I'll be taking a look at that, as for now, I recommend using the official API for invoice validation, it's a safer and more reliable API.
EDIT: Are the other methods working fine?
I'll be taking a look at that, as for now, I recommend using the official API for invoice validation, it's a safer and more reliable API.
EDIT: Are the other methods working fine?
Alright, I went and use their API. But I haven't actually tested the other methods, that was mostly what I was looking for.
I'm having a little trouble verifying the invoice. The token and the publisher ID were supplied as described:
But after calling:
it gives me the following message:
Invoice Rejected: StatusCodeError: 401 - "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>401 Authorization Required</title>\n</head><body>\n<h1>Authorization Required</h1>\n<p>This server could not verify that you\nare authorized to access the document\nrequested. Either you supplied the wrong\ncredentials (e.g., bad password), or your\nbrowser doesn't understand how to supply\nthe credentials required.</p>\n</body></html>\n"
The invoice is also a valid code since I have checked on the publisher page.
Using Node 14.3.0 with Windows 10.