You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like converting the letter 'O' to number zero with $document->parsed->document_number is not enough, it needs to be done as well with $document->parsed->check_document_number. I had this issue with a document_number that ended with 7910 followed by check_document_number '0' (zero) which was returned as letter 'O' from the google api.
I was able to fix that by adding the following line as line 249 in src/IdentityDocuments.php
$document->parsed->check_document_number = preg_replace($re, $subst, $document->parsed->check_document_number);
I haven't done any exhaustive testing so I don't create a pull request, but this seems to have fixed the problem for me anyway.
The text was updated successfully, but these errors were encountered:
Seems like converting the letter 'O' to number zero with $document->parsed->document_number is not enough, it needs to be done as well with $document->parsed->check_document_number. I had this issue with a document_number that ended with 7910 followed by check_document_number '0' (zero) which was returned as letter 'O' from the google api.
I was able to fix that by adding the following line as line 249 in src/IdentityDocuments.php
$document->parsed->check_document_number = preg_replace($re, $subst, $document->parsed->check_document_number);
I haven't done any exhaustive testing so I don't create a pull request, but this seems to have fixed the problem for me anyway.
The text was updated successfully, but these errors were encountered: