Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Attributes and values in object
“config
"config.
autoCardtypeDetection”
autoCardtypeDetection"

attribute

value

supportedCardtypes

Define possible cardtypes that should be accepted by automatic detection, e.g. ["V", "M", "A"]

callback

Define a function that is used as a callback-function if result of automatic cardtype detection changes. Detection starts after first 6 digits of the PAN – this is the BIN (Bank Identification Number) of a credit card and the official id for cardtype and origin detection.

This callback-function can be used to change highlighting of logos for selected / detected cardtypes.

Possible result codes in callback-function:

Resultcode

Meaning -> Detected for PAN starting

A

see cardtype - definition

D

see cardtype - definition

J

see cardtype - definition

M

see cardtype - definition

O

see cardtype - definition

P

see cardtype - definition

V

see cardtype - definition
Usee cardtype - definition (coming soon)

?

Cardtype not automatically detected

-

Cardtype automatically detected, but not allowed because not in array supportedCardtypes

Further cardtypes may be added in future.

deactivate

Can be used to preconfigure the config-block and still deactivate automatic cardtype-detection. Possible values: true || false


Tip
  • Some browsers do have problems if only “width” or “height” is specified. So if you want to define height or width for an input field, provide always both.


Table of Contents