Menu

Card brands

SDK v1
Last updated September 2021

The SDK enables you to provide a list of card brands that you support. This means that if you do not support a certain card brand the SDK returns an invalid state if an unsupported brand is recognized.

By default, the SDK allows cards from any brand. If you do not wish to restrict the card brands that you accept then you do not need to pass any configuration.

Example Configuration

To restrict the card brands that you accept, simply pass in an array of the brands that you do wish to accept when initializing the SDK.

The following configuration restricts the SDK to accept only American Express, Visa or Mastercard BIN ranges.

Copied!
acceptedCardBrands: ["amex", "visa", "mastercard"]

Currently supported card brands

The SDK is able to recognize the following card brands:

BrandCode
American Express"amex"
Diners"diners"
Discover"discover"
JCB"jcb"
Maestro"maestro"
Mastercard"mastercard"
Visa"visa"

If the SDK does not recognize a PAN as one of the above brands, it will be permitted as long as it meets the usual criteria for a valid PAN.