Exemplo n.º 1
0
 public function __construct($localeCode, $instituteIdentification, $bankAccountNumber)
 {
     if (intval($bankAccountNumber) >= 800000000 && intval($bankAccountNumber) <= 899999999) {
         $instituteIdentification = "70020270";
     }
     parent::__construct($localeCode, $instituteIdentification, $bankAccountNumber);
 }
Exemplo n.º 2
0
 public function __construct($localeCode, $instituteIdentification, $bankAccountNumber)
 {
     if ($instituteIdentification == '50810900') {
         $instituteIdentification = '66010200';
     }
     parent::__construct($localeCode, $instituteIdentification, $bankAccountNumber);
 }
Exemplo n.º 3
0
 public function __construct($localeCode, $instituteIdentification, $bankAccountNumber)
 {
     if (strlen($bankAccountNumber) == 8) {
         $bankAccountNumber = str_pad($bankAccountNumber, $this->getBankAccountNumberLength(), '0', STR_PAD_RIGHT);
     }
     parent::__construct($localeCode, $instituteIdentification, $bankAccountNumber);
 }
Exemplo n.º 4
0
 public function __construct($localeCode, $instituteIdentification, $bankAccountNumber)
 {
     $bankAccountReplacement = array("30040000#36" => "2611036", "47880031#50" => "519899900", "47840065#50" => "1501030", "47840065#55" => "1501030", "70080000#94" => "928553201", "70040041#94" => "2128080", "47840065#99" => "1501030", "37080040#100" => "269100000", "38040007#100" => "119160000", "37080040#111" => "215022000", "51080060#123" => "12299300", "36040039#150" => "1616200", "68080030#202" => "416520200", "30040000#222" => "348010002", "38040007#240" => "1090240", "69240075#444" => "4455200", "60080000#502" => "901581400", "60040071#502" => "5259502", "55040022#555" => "211050000", "39080005#556" => "204655600", "39040013#556" => "1065556", "57080070#661" => "604101200", "26580070#700" => "710000000", "50640015#777" => "2222222", "30040000#999" => "1237999", "86080000#1212" => "480375900", "37040044#1888" => "212129101", "25040066#1919" => "1419191", "10080000#1987" => "928127700", "50040000#2000" => "7284003", "20080000#2222" => "903927200", "38040007#3366" => "3853330", "37080040#4004" => "233533500", "37080040#4444" => "233000300", "43080083#4630" => "825110100", "50080000#6060" => "96736100", "10040000#7878" => "2678787", "10080000#8888" => "928126501", "50080000#9000" => "26492100", "79080052#9696" => "300021700", "79040047#9696" => "6802102", "39080005#9800" => "208457000", "50080000#42195" => "900333200", "32040024#47800" => "1555150", "37080040#55555" => "263602501", "38040007#55555" => "3055555", "50080000#101010" => "90003500", "50040000#101010" => "3110111", "37040044#102030" => "2223444", "86080000#121200" => "480375900", "66280053#121212" => "625242400", "16080000#123456" => "12345600", "29080010#124124" => "107502000", "37080040#182002" => "216603302", "12080000#212121" => "4050462200", "37080040#300000" => "983307900", "37040044#300000" => "3000007", "37080040#333333" => "270330000", "38040007#336666" => "1052323", "55040022#343434" => "217900000", "85080000#400000" => "459488501", "37080040#414141" => "41414100", "38040007#414141" => "1080001", "20080000#505050" => "500100600", "37080040#555666" => "55566600", "20080000#666666" => "900732500", "30080000#700000" => "800005000", "70080000#700000" => "750055500", "70080000#900000" => "319966601", "37080040#909090" => "269100000", "38040007#909090" => "119160000", "70080000#949494" => "575757500", "70080000#1111111" => "448060000", "70040041#1111111" => "1521400", "10080000#1234567" => "920192001", "38040007#1555555" => "2582666", "76040061#2500000" => "4821468", "16080000#3030400" => "4205227110", "37080040#5555500" => "263602501", "75040062#6008833" => "600883300", "12080000#7654321" => "144000700", "70080000#7777777" => "443540000", "70040041#7777777" => "2136000", "64140036#8907339" => "890733900", "70080000#9000000" => "319966601", "61080006#9999999" => "202427500", "12080000#12121212" => "4101725100", "29080010#12412400" => "107502000", "34280032#14111935" => "645753800", "38040007#43434343" => "1181635", "30080000#70000000" => "800005000", "70080000#70000000" => "750055500", "44040037#111111111" => "3205655", "70040041#400500500" => "4005005", "60080000#500500500" => "901581400", "60040071#500500500" => "5127006");
     if (isset($instituteIdentificationReplacement[$instituteIdentification . "#" . $bankAccountNumber])) {
         $bankAccountNumber = $instituteIdentificationReplacement[$instituteIdentification . "#" . $bankAccountNumber];
     }
     parent::__construct($localeCode, $instituteIdentification, $bankAccountNumber);
 }
Exemplo n.º 5
0
 public function __construct($localeCode, $instituteIdentification, $bankAccountNumber)
 {
     $replacements = array("55050000#35000" => "60050101#7401555913", "55050000#119345106" => "60050101#7401555906", "55050000#908" => "60050101#7401507480", "55050000#901" => "60050101#7401507497", "55050000#910" => "60050101#7401507466", "55050000#35100" => "60050101#7401555913", "55050000#902" => "60050101#7401507473", "55050000#44000" => "60050101#7401555872", "55050000#110132511" => "60050101#7401550530", "55050000#110024270" => "60050101#7401501266", "55050000#3500" => "60050101#7401555913", "55050000#110050002" => "60050101#7401502234", "55050000#55020100" => "60050101#7401555872", "55050000#110149226" => "60050101#7401512248", "60020030#1047444300" => "60050101#7871538395", "60020030#1040748400" => "60050101#0001366705", "60020030#1000617900" => "60050101#0002009906", "60020030#1003340500" => "60050101#0002001155", "60020030#1002999900" => "60050101#0002588991", "60020030#1004184600" => "60050101#7871513509", "60020030#1000919900" => "60050101#7871531505", "60020030#1054290000" => "60050101#7871521216", "60050000#1523" => "60050101#0001364934", "60050000#2811" => "60050101#0001367450", "60050000#2502" => "60050101#0001366705", "60050000#250412" => "60050101#7402051588", "60050000#3009" => "60050101#0001367924", "60050000#4596" => "60050101#0001372809", "60050000#3080" => "60050101#0002009906", "60050000#1029204" => "60050101#0002782254", "60050000#3002" => "60050101#0001367924", "60050000#123456" => "60050101#0001362826", "60050000#2535" => "60050101#0001119897", "60050000#5500" => "60050101#0001375703", "66020020#4002401000" => "60050101#7495500967", "66020020#4000604100" => "60050101#0002810030", "66020020#4002015800" => "60050101#7495530102", "66020020#4003746700" => "60050101#7495501485", "66050000#86567" => "60050101#0001364934", "66050000#86345" => "60050101#7402046641", "66050000#85304" => "60050101#7402045439", "66050000#85990" => "60050101#7402051588", "86050000#1016" => "60050101#7461500128", "86050000#3535" => "60050101#7461505611", "86050000#2020" => "60050101#7461500018", "86050000#4394" => "60050101#7461505714");
     if (isset($replacements[$instituteIdentification . "#" . $bankAccountNumber])) {
         $replacement = $replacements[$instituteIdentification . "#" . $bankAccountNumber];
         $explodedData = explode('#', $replacement);
         $instituteIdentification = $explodedData[0];
         $bankAccountNumber = $explodedData[1];
     }
     parent::__construct($localeCode, $instituteIdentification, $bankAccountNumber);
 }
Exemplo n.º 6
0
 public function __construct($localeCode, $instituteIdentification, $bankAccountNumber)
 {
     $replacements = array("67220020#5308810004" => "60050101#0002662604", "67220020#5308810000" => "60050101#0002659600", "67020020#5203145700" => "60050101#7496510994", "69421020#6208908100" => "60050101#7481501341", "66620020#4840404000" => "60050101#7498502663", "64120030#1201200100" => "60050101#7477501214", "64020030#1408050100" => "60050101#7469534505", "63020130#1112156300" => "60050101#0004475655", "62030050#7002703200" => "60050101#7406501175", "69220020#6402145400" => "60050101#7485500252");
     if (isset($replacements[$instituteIdentification . "#" . $bankAccountNumber])) {
         $replacement = $replacements[$instituteIdentification . "#" . $bankAccountNumber];
         $explodedData = explode('#', $replacement);
         $instituteIdentification = $explodedData[0];
         $bankAccountNumber = $explodedData[1];
         parent::__construct($localeCode, $instituteIdentification, $bankAccountNumber);
     } else {
         throw new \Exception('no iban generation');
     }
 }
Exemplo n.º 7
0
 public function __construct($localeCode, $instituteIdentification, $bankAccountNumber)
 {
     $bankAccountReplacement = array("50070010#9999" => "92777202");
     if (isset($bankAccountReplacement[$instituteIdentification . "#" . $bankAccountNumber])) {
         $bankAccountNumber = $bankAccountReplacement[$instituteIdentification . "#" . $bankAccountNumber];
     }
     // Accounts from "Deutsche Bank" have to be at least 7 digits in length.
     // Leading zero's are possible
     if (strlen($bankAccountNumber) < 7) {
         $bankAccountNumber = str_pad($bankAccountNumber, 7, '0', STR_PAD_LEFT);
     }
     if (substr($instituteIdentification, 3, 1) == '7') {
         // For correct IBAN generation the sub account from "Deutsche Bank" has to be included
         if (strlen($bankAccountNumber) == 7) {
             $bankAccountNumber = str_pad($bankAccountNumber, 9, '0', STR_PAD_RIGHT);
         }
     }
     parent::__construct($localeCode, $instituteIdentification, $bankAccountNumber);
 }
Exemplo n.º 8
0
 public function __construct($localeCode, $instituteIdentification, $bankAccountNumber)
 {
     parent::__construct($localeCode, '50050000', $bankAccountNumber);
 }