Last Updated: 19 September 2024 | Change Log
Card brands
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.
JavaScript
acceptedCardBrands: ["amex", "visa", "mastercard"]
Currently supported card brands
The SDK is able to recognize the following card brands:
Brand | Code |
---|---|
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.