Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

💳 IBAN API validation using ibanapi.com for Go

The official Go package for validating IBAN using the ibanapi.com public API
This package offers methods to validate IBAN (full and basic validation) wherein full validation will return the bank information alongside the basic validations.

How to use

  • Get an API Key from the ibanapi.com website.
  • Install the package go get github.com/ibanapi/ibanapi_go
  • You can now initialize & use the package as follows
  • Import the package import ibanapi "github.com/ibanapi/ibanapi_go/ibanapi"
  • For full iban validation
//Get all the IBAN Informationresp, err:=ibanapi.ValidateIBAN("API_KEY", "EE471000001020145685")
iferr!=nil {
panic(err)
}
//Use the results to fit your application logicfmt.Println(resp.Result)
  • For basic iban validation
//Get all the basic IBAN Informationresp, err:=ibanapi.ValidateIBANBasic("API_KEY", "EE471000001020145685")
iferr!=nil {
panic(err)
}
//Use the results to fit your application logicfmt.Println(resp.Result)
  • To get the balance
//Get the account balanceresp, err:=ibanapi.GetBalance("API_KEY")
iferr!=nil {
panic(err)
}
fmt.Println(resp.Result)

Issue or suggestion

Please feel free to open a bug report or pull request to this repo.
or visit the iban api website

About

The official IBANAPI.com Go package.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages