ProtocolHelper

Protocol helper. Adds methdods used by multiple protocols. Such as calculating reference etc.
Methods Summary
public static
# calculateReference( int $orderId )
Calculate reference number with 7-3-1 method. See ENG: http://www.pangaliit.ee/en/settlements-and-standards/reference-number-of-the-invoice EST: http://www.pangaliit.ee/et/arveldused/7-3-1meetod
public static
# langToISO6391( string $language )
Convert ISO-639-2 language code to ISO-639-1
public static
# generateEcuno( )
Generates transaction number for ECommerce protocol Format: YYYYMM + rand between 100 000 - 999 999
public static
# mbStrPad( mixed $input , int $padLength , string $padString = ' ', int $padType = NULL, string $encoding = NULL )
Multibyte str_pad