-
Notifications
You must be signed in to change notification settings - Fork 0
Polish IBAN numbers generator
License
macuk/pl_iban_generator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
PLIbanGenerator =============== This plugin provides Polish IBAN numbers generator. It generates full Polish IBAN number with check digits based on only bank code and account number. Information about Polish IBAN number (in Polish language): http://pl.wikipedia.org/wiki/International_Bank_Account_Number Installation ============ script/plugin install git://github.com/macuk/pl_iban_generator.git Example ======= Typical usage: iban = PlIbanGenerator.new('1140 2004', '0000 3002 3471 3036') iban.get # 'PL47114020040000300234713036' iban.to_s # 'PL47 1140 2004 0000 3002 3471 3036' You can change parameters: iban.bank_code = 24900005 # number iban.account_no = '0000111122223333' # string without spaces iban.get # 'PL72249000050000111122223333' iban.to_s # 'PL72 2490 0005 0000 1111 2222 3333' If you don't want 'PL' prefix: iban = PlIbanGenerator.new(11402004, '0000300234713036', '') iban.get # '47114020040000300234713036' iban.to_s # '47 1140 2004 0000 3002 3471 3036' iban = PlIbanGenerator.new(11402004, '0000300234713036') iban.prefix = '' iban.get # '47114020040000300234713036' iban.to_s # '47 1140 2004 0000 3002 3471 3036' Copyright (c) 2009 Piotr Macuk, released under the MIT license
About
Polish IBAN numbers generator
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published