Table of contents
- 1. Description of the method
- 3. Example
Description of the method
.isValidCreditorIdentifierEPC() method is used to check whether CI check digit is valid according to ISO 7064 Mod 97-10. EPC gathers several countries’ check digit calculation in a separate document: EPC262-08 Creditor Identifier Overview v2.3. Most countries use mod 97-10 to calculate check digit, but some countries use different version of this check and some use different check altogether. Usage of this method should be reviewed bank by bank. The method checks the following points:
It’s worth noting that country code is checked from characters in first two positions and based on those, the check digit is calculated. This rule excepts that those two country code characters are indeed valid. The creditor business code is ignored when calculating the check digit.
|Description:||The example rule checks if the given creditor identifier is valid.|
The XML snippet below would pass this check.
The other snippet below however would not pass this check.