Skip to content

Commit

Permalink
Adds docs regarding bank code validation
Browse files Browse the repository at this point in the history
  • Loading branch information
captn3m0 committed Nov 15, 2016
1 parent 52fd6ba commit 9972f81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ use Razorpay\IFSC\IFSC;

IFSC::validate('KKBK0000261'); // Returns true
IFSC::validate('BOTM0XEEMRA'); // Returns false

IFSC::validateBankCode('PUNB'); // Returns true
IFSC::validateBankCode('ABCD'); // Returns false

IFSC::getBankName('PUNB'); // Returns 'Punjab National Bank'
IFSC::getBankName('ABCD'); // Returns null
```

### Node.js
Expand Down
1 change: 1 addition & 0 deletions tests/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function testBankNames()
{
$this->assertEquals('Punjab National Bank', IFSC::getBankName('PUNB'));
$this->assertEquals('Shri Chhatrapati Rajashri Shahu Urban Co-Op Bank Ltd', IFSC::getBankName('CRUB'));
$this->assertEquals(null, IFSC::getBankName('ABCD'));
}

protected function singleTest($message, $tests)
Expand Down

0 comments on commit 9972f81

Please sign in to comment.