All Projects → railsmechanic → bankster

railsmechanic / bankster

Licence: MIT license
An IBAN account numbers and BIC validation tool for Elixir.

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to bankster

ibandit
Convert national banking details into IBANs, and vice-versa.
Stars: ✭ 90 (+221.43%)
Mutual labels:  banking, iban
persian-tools-rs
An anthology of a variety of tools for the Persian language in Rust
Stars: ✭ 17 (-39.29%)
Mutual labels:  banking
BankPayment
Persian Bank Payment Server
Stars: ✭ 37 (+32.14%)
Mutual labels:  banking
cyclos
Cyclos is a payment platform for large businesses and organisations
Stars: ✭ 15 (-46.43%)
Mutual labels:  banking
bian
The Banking Industry Architecture Network e.V. (BIAN) model in Archimate 3
Stars: ✭ 48 (+71.43%)
Mutual labels:  banking
php-ipg-ir
IPG (Internet Payment Gateway) manager for Iran Banking System
Stars: ✭ 26 (-7.14%)
Mutual labels:  banking
Loan-calculator-bank-payment
Loan Calculator a small web application encoded in HTML, PHP, JS, and CSS. If you want to earn from BANK NICHE then you can use Loan Calculator script.
Stars: ✭ 32 (+14.29%)
Mutual labels:  banking
python-aqbanking
AqBanking wrapper for python
Stars: ✭ 14 (-50%)
Mutual labels:  banking
ofxgo
Golang library for querying and parsing OFX
Stars: ✭ 96 (+242.86%)
Mutual labels:  banking
accounts
accounts - General Ledger and financial account service with an HTTP API
Stars: ✭ 39 (+39.29%)
Mutual labels:  banking
online-banking-system
Online banking system in PHP & MySQL accompanied by a beautiful website !
Stars: ✭ 59 (+110.71%)
Mutual labels:  banking
open-psd2
An open source framework for using banking API's built for PSD2 regulation.
Stars: ✭ 20 (-28.57%)
Mutual labels:  banking
up-bank-api
💎 Typed python client for Up's banking API
Stars: ✭ 20 (-28.57%)
Mutual labels:  banking
PoolPort
A PHP library to connect all Iranian payments gateways
Stars: ✭ 75 (+167.86%)
Mutual labels:  banking
erpnextswiss
ERPNext application for Switzerland-specific use cases
Stars: ✭ 58 (+107.14%)
Mutual labels:  banking
wire
FedWire funds service file parser and writer. The HTTP server is available in a Docker image and the Go package is available.
Stars: ✭ 52 (+85.71%)
Mutual labels:  banking
bunq2ifttt
bunq2IFTTT creates a self-hosted interface between the bunq banking API and IFTTT.
Stars: ✭ 20 (-28.57%)
Mutual labels:  banking
FinanceKit
FinanceKit is a Framework for iOS and Mac to build apps working with financial data, like money, currencies, stocks, portfolio, transactions and other concepts.
Stars: ✭ 15 (-46.43%)
Mutual labels:  banking
js-sdk
JavaScript SDK for connecting to Kontist
Stars: ✭ 13 (-53.57%)
Mutual labels:  banking
ultimateMICR-SDK
Bank check information extraction/OCR from Magnetic Ink Character Recognition [MICR] (E-13B & CMC-7) using deep learning
Stars: ✭ 42 (+50%)
Mutual labels:  banking

Bankster Build Status

An easy to use Elixir validator for IBAN account and BIC numbers. It includes IBAN rules for 115 countries and validation for BIC numbers.

  • IBAN validation is done using format, country, length and checksum.
  • BIC validation is done using format.

Installation

The package can be installed as Hex package:

  1. Add bankster to your list of dependencies in mix.exs:
def deps do
  [{:bankster, "~> 0.3.3"}]
end
  1. Run mix deps.get to fetch the package from hex

Usage

Validate IBANs

You can either use Bankster.iban_valid?/1 or Bankster.Iban.valid?/1 to validate IBANs.

iex> Bankster.iban_valid?("NOTVALID")
false

iex> Bankster.Iban.valid?("NOTVALID")
false

Validation with errors

Beside the boolean validation function, Bankster offers a validation function which returns the corresponding error. Like the other validation, you can use Bankster.iban_validate/1 or Bankster.Iban.validate/1 to validate IBANs.

iex> Bankster.iban_validate("NOTVALID")
{:error, :invalid_country}

iex> Bankster.Iban.validate("DK8387188644726815223423423423423423423")
{:error, :invalid_length}

iex> Bankster.Iban.validate("DK83 8718 8644 7268 15")
{:ok, "DK8387188644726815"}

Validate BICs

Validating BICs works the same way as already shown for IBANs. So you can either use Bankster.bic_valid?/1 or Bankster.Bic.valid?/1 to validate BICs.

iex> Bankster.bic_valid?("NOTVALID")
false

iex> Bankster.Bic.valid?("NOTVALID")
false

License

Bankster source code is released under MIT License. Check LICENSE file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].