still facing the issue
hi,
Did you get any solution for this? I am getting same error message upon Compliance Check, this error was not there before.
Dear @amarcp ,
Please create a new sepearte post with providing more details
1- which environment are you using? sim, prod, or sanbdox?
2- which endpoint?
3- are you sure that the VAT number associated with this certificate is included as the seller company ID?
providing as much information as you can of the situation, will help us to investigate your issue, raise this as a seperate post and our team will help you.
I’m using a sandbox environment, and I’ve noticed that the order of fields is very important when retrieving the issuer name from the certificate.
For example:
"issuer" => [
"DC" => [
"local",
"gov",
"extgazt"
],
"CN" => "PRZEINVOICESCA4-CA"
];
This needs to be converted into a string in the following order:
CN=PRZEINVOICESCA4-CA, DC=extgazt, DC=gov, DC=local
Notice that the CN should always appear first, and the DC values should be reversed.
Here’s the method I’m using in PHP/Laravel:
private function convertIssuerArrayToString($issuer)
{
$result = [];
// Add "CN" to the result if it exists
if (isset($issuer['CN'])) {
$result[] = "CN=" . $issuer['CN'];
}
// Add "DC" values in reverse order if "DC" is an array
if (isset($issuer['DC']) && is_array($issuer['DC'])) {
foreach (array_reverse($issuer['DC']) as $dcValue) {
$result[] = "DC=" . $dcValue;
}
}
// Return the comma-separated string
return implode(', ', $result);
}
You can use this function as shown below:
$issuer = $this->convertIssuerArrayToString($x509['issuer']);
This method ensures that the CN is listed first and the DC values are displayed in reverse order, as required.
I’ also started to get the same issue since yesturday.
Created a post: Suddenly getting a response: Compliance check failed: HTTP error: 401
Everything works fine on NonProduction Mode but not In Simulation & Production.
Any idea how to fix this?
sirinibin2006
It has been two days now with this problem, have you come across any solution or progress?
Hi @roopa, Could you please confirm which DLL version you are currently using?
I am asking because I was using the .NET DLL, and when signing the invoice, the validation always failed. However, when performing the same process via the command line, the invoice was signed correctly. Using the command line, though, is a difficult approach for regular use.
Your confirmation will help us identify if the issue is related to the DLL version or something else in our setup.
Regards,