Properties
ready
Triggered when the provider vaultSDK has been loaded and is ready to use.
success
Triggered when the submission has been successful
vault_form_token: string;
card?
Returns
The vault_form_token
is the identifier for the vault form, and card
contains information about the card such as the masked bin, the last digit and the detected brands.
error
Triggered for multiple errors while using the SDK.
message
code?
payload?
Triggered when the form validation changes.
It's fired once at initialization with false
and then on every change.
hasErrors
fields?
optional fields: FieldsState;
focus
focus: object & FieldState & object;
Triggered when a field is focused
This include the state of the field on which the change happened but also the state of the other fields.
Type Declaration
fieldName
Type Declaration
fields
blur
blur: object & FieldState & object;
Triggered when a field is blurred/unfocused
This include the state of the field on which the change happened but also the state of the other fields.
Type Declaration
fieldName
Type Declaration
fields
autocomplete
autocomplete: object & FieldState & object;
Triggered when a field is autocompleted
This include the state of the field on which the change happened but also the state of the other fields.
Type Declaration
fieldName
Type Declaration
fields
keyup
keyup: object & FieldState & object;
Triggered when a key is pressed in a field
This include the state of the field on which the change happened but also the state of the other fields.
Type Declaration
fieldName
Type Declaration
fields
keydown
keydown: object & FieldState & object;
Triggered when a key is pressed down in a field
This include the state of the field on which the change happened but also the state of the other fields.
Type Declaration
fieldName
Type Declaration
fields
change
change: object & FieldState & object;
Triggered when a field changes(focus, blur, keyup, keydown, autocomplete).
This include the state of the field on which the change happened but also the state of the other fields.
Type Declaration
fieldName
Type Declaration
fields
cardInfo
Triggered when the card information is available.
This include the detected brands, the masked bin and the last four digits of the card.
brandDetected
Triggered when a brand is detected in the card number field.
It can also contain a co-brand if applicable.
brands?
optional brands: (
| "VISA"
| "CARTE_BANCAIRE"
| "MASTERCARD"
| "MAESTRO"
| "AMERICAN_EXPRESS"
| "DISCOVER"
| "JCB"
| "DINERS_CLUB"
| "UNIONPAY"
| "OTHER")[];