isPanValidVerbose method
Validates the Merchant PAN using the Luhn Algorithm with verbose logging.
This method logs each step of the Luhn calculation, which can be helpful for debugging.
Returns:
true
if the PAN is valid according to the Luhn algorithm.false
if the PAN is invalid or null.
Implementation
bool isPanValidVerbose({bool checkLuhn = true}) {
if (pan.isNotEmpty) {
return pan.isValidPAN(verbose: true, checkLuhn: checkLuhn);
}
'PAN is null or empty.'.qrLog();
return false;
}