OXID eShop CE
6.1.5
|
Public Member Functions | |
isValid ($sIBAN) | |
isValidCodeLengths ($aCodeLengths) | |
setCodeLengths ($aCodeLengths) | |
getCodeLengths () | |
Public Attributes | |
const | IBAN_ALGORITHM_MOD_VALUE = 97 |
Protected Member Functions | |
_isLengthValid ($sIBAN) | |
_getLengthForCountry ($sIBAN) | |
_isAlgorithmValid ($sIBAN) | |
_moveInitialCharactersToEnd ($sIBAN) | |
_replaceLettersToNumbers ($sIBAN) | |
_isIBANChecksumValid ($sIBAN) | |
_isNotEmptyArray ($aCodeLengths) | |
_isEachCodeLengthValid ($aCodeLengths) | |
_isCodeLengthKeyValid ($sCountryAbbr) | |
_isCodeLengthValueValid ($iLength) | |
Protected Attributes | |
$_aCodeLengths = [] | |
SEPA (Single Euro Payments Area) validation class
|
protected |
Gets length for country.
string | $sIBAN | IBAN |
|
protected |
Checks if IBAN is valid according to checksum algorithm
string | $sIBAN | IBAN |
|
protected |
Checks if country code is valid
string | $sCountryAbbr | Country abbreviation |
|
protected |
Checks if value is numeric and does not contain whitespaces
integer | $iLength | Length |
|
protected |
Checks if each code length is valid.
array | $aCodeLengths | Code lengths |
|
protected |
Interpret the string as a decimal integer and compute the remainder of that number on division by 97.
string | $sIBAN | IBAN |
|
protected |
Check if the total IBAN length is correct as per country. If not, the IBAN is invalid.
string | $sIBAN | IBAN |
|
protected |
Checks if Code length is non empty array
array | $aCodeLengths | Code lengths |
|
protected |
Move the four initial characters to the end of the string.
string | $sIBAN | IBAN |
|
protected |
Replace each letter in the string with two digits, thereby expanding the string, where A = 10, B = 11, ..., Z = 35.
string | $sIBAN | IBAN |
OxidEsales\EshopCommunity\Core\SepaIBANValidator::getCodeLengths | ( | ) |
Get IBAN length by country data
OxidEsales\EshopCommunity\Core\SepaIBANValidator::isValid | ( | $sIBAN | ) |
International bank account number validation
An IBAN is validated by converting it into an integer and performing a basic mod-97 operation (as described in ISO 7064) on it. If the IBAN is valid, the remainder equals 1.
string | $sIBAN | code to check |
OxidEsales\EshopCommunity\Core\SepaIBANValidator::isValidCodeLengths | ( | $aCodeLengths | ) |
Validation of IBAN registry
array | $aCodeLengths |
OxidEsales\EshopCommunity\Core\SepaIBANValidator::setCodeLengths | ( | $aCodeLengths | ) |
|
protected |
const OxidEsales\EshopCommunity\Core\SepaIBANValidator::IBAN_ALGORITHM_MOD_VALUE = 97 |