Business::IBAN

Validate and generate IBANs
Download

Business::IBAN Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tina Müller
  • Publisher web site:
  • http://search.cpan.org/~tinita/

Business::IBAN Tags


Business::IBAN Description

Validate and generate IBANs With the Business::IBAN Perl module you can validate IBANs (International Bank Account Number) like "IBAN DE97123456781234567890" (ISO 13616). (Note: spaces between numbers are allowed.) Note that this dos not (and cannot) assure that the bank account exists or that the bank account number for the bank itself is valid. You can also create an IBAN if you supply * - your BBAN (Basic Bank Account Number), (or for germany your BLZ and account number are sufficient), * - and either your country code (ISO3166) or the english name for your country. But note that only your bank is supposed to create your official IBAN.SYNOPSIS use Business::IBAN; use Locale::Country; my $cc = country2code('Germany'); my $iban = Business::IBAN->new(); # ---------- generate my $ib = $iban->getIBAN( { ISO => $cc, # or "DE", etc. BIC => 12345678, # Bank Identifier Code, meaning the BLZ # in Germany AC => "1234567890", }); # or my $ib = $iban->getIBAN( { ISO => "DE", BBAN => 123456781234567890, }); if ($ib) { print "IBAN is $ib "; } else { $iban->printError(); # or my @errors = $iban->getError(); # print your own error messages (for description of error- # codes see section ERROR-CODES } # ------------ validate if ($iban->valid($ib)) { # note: this also accepts IBANs in paper format with spaces added print "$ib is valid "; } else { $iban->printError(); } Requirements: · Perl


Business::IBAN Related Software