bank_card_info v1.0.0 BankCardInfo

Get all information for a bank card.

Link to this section Summary

Functions

Getting card information. First paramter is first digits of a bank card

Getting card information. First paramter is first digits of a bank card

Link to this section Functions

Getting card information. First paramter is first digits of a bank card.

Examples

iex> BankCardInfo.get "45717360"
{:ok,
%{bank: %{city: "Hjørring", logo: "", name: "Jyske Bank", phone: "+4589893300",
url: "www.jyskebank.dk"}, brand: "Visa/Dankort",
country: %{alpha2: "DK", latitude: 56, longitude: 10, name: "Denmark",
numeric: "208"}, number: %{length: 16, prefix: "45717360"}, prepaid: false,
scheme: "VISA", type: "DEBIT"}}

Getting card information. First paramter is first digits of a bank card.

Examples

iex> BankCardInfo.get! "45717360"
%{bank: %{city: "Hjørring", logo: "", name: "Jyske Bank", phone: "+4589893300",
url: "www.jyskebank.dk"}, brand: "Visa/Dankort",
country: %{alpha2: "DK", latitude: 56, longitude: 10, name: "Denmark",
numeric: "208"}, number: %{length: 16, prefix: "45717360"}, prepaid: false,
scheme: "VISA", type: "DEBIT"}