| METHOD | DESCRIPTION |
|---|---|
| focus | Focus on a server-side field. |
| getFormValidity | Validate all fields. |
| onFieldBlur | This event is emitted when the field loses focus. |
| onFieldFocus | This event is executed when the field is focused. |
| onFieldSubmit | This event is executed when the field has been submitted. |
| onFieldValidity | This event is executed when the validity of the field changes. |
| onOTPValidation | This event is triggered when OTP validation is required. |
| requestToken | Obtain a payment token with a card. |
| reset | Reset a server-side field. |
| PARAMETER | TYPE | REQUIRED |
|---|---|---|
| fieldType | FieldTypeEnum | NO |
| CODE | MESSAGE | EXAMPLE | DESCRIPTION |
|---|---|---|---|
| E010 | Error al realizar focus en el campo | { code: "E010", message: "Error al realizar focus en el campo" } | If the specified field type is invalid, it will return an E010 error |
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| event | fieldEvent | YES | This callback is executed when the server-side field is blurry. fieldEvent: FieldValidity | FormValidity |
| fieldType | FieldTypeEnum | NO | Set the field type if you want to control the event blurring of a specific server-side field |
blur events of all server-side fields.blur event of a specific server-side field.| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| event | fieldEvent | YES | This callback is executed when the server-side field is focused. fieldEvent: FieldValidity | FormValidity |
| fieldType | FieldTypeEnum | NO | Set the field type if you want to control the event focus of a specific server-side field |
focus events of all server-side fields.focus event of a specific server-side field.| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| event | fieldEvent | YES | This callback is executed when the server-side field is sent. fieldEvent: FieldValidity | FormValidity |
| fieldType | FieldTypeEnum | NO | Set the field type if you want to control the event dispatch of a specific server-side field |
submit events for all server-side fields.submit event of a specific server-side field.| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| event | fieldEvent | YES | This callback is executed when the server-side field changes its validity. fieldEvent: FieldValidity | FormValidity |
| fieldType | FieldTypeEnum | NO | Set the field type if you want to control the validity of a specific server-side field event |
validity events of all server-side fields.validity event of a specific server-side field.| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| onRequired | callback | YES | This callback is executed when the created token needs OTP validation |
| onError | callback | YES | This callback is executed when the OTP validation returns an error |
| onSuccess | callback | YES | This callback is executed when OTP validation is successful |
| CODE | MESSAGE | EXAMPLE | DESCRIPTION |
|---|---|---|---|
| E008 | OTP validation error | { code: "E008", message: "Error en la validación de OTP" } | If the OTP validation is not correct, the onError callback will return the error code E008. Please try again by entering the correct data for the OTP validation. |
onOTPValidation events of the server-side field for OTP.initCardToken method is configured as a subscription, the token must be used to create a subscription; otherwise, you can continue as usual with the flow for one-time payment.TokenResponse with the generated token and in case there are deferrals they will be returned in the response.| CODE | MESSAGE | EXAMPLE | DESCRIPTION |
|---|---|---|---|
| E002 | Error en solicitud de token (Error in token request) | { code: "E002", message: "Error en solicitud de token" } | If there was an error when requesting a token, the error code E002 will be returned. Please validate that the required information has been submitted correctly. |
| E003 | Error en solicitud de datos del comercio (Error in requesting merchant data ) | { code: "E003", message: "Error en solicitud de datos del comercio" } | If there was an error requesting the merchant information. Please try again if the error persists contact Kushki support. |
| E004 | Error en solicitud de JWT ( Error in JWT request ) | { code: "E004", message: "Error en solicitud de JWT" } | If the merchant has a 3DS rule enabled and there was an error requesting the JWT. Please try again if the error persists contact Kushki support |
| E005 | Campos 3DS inválidos ( Invalid 3DS fields) | { code: "E005", message: "Campos 3DS inválidos" } | If the merchant has a 3DS rule enabled and there was an error in the 3DS authentication. Please try again making sure to enter the data correctly for the 3DS validation. |
| E006 | Error en solicitud de validación de token ( Error in token validation request) | { code: "E006", message: "Error en solicitud de validación de token" } | If the merchant has a 3DS rule enabled and there was an error in the 3DS validation session. Please try again making sure to enter correctly the data for the 3DS validation, if the error persists contact Kushki support |
| E007 | Error en la validación del formulario (Error in form validation) | { code: "E007", message: "Error en la validación del formulario" } | If any server-side field is invalid the error code E007 will be returned. Please try again making sure to enter the requested data correctly. |
| E008 | Error en la validación de OTP (OTP validation error) | { code: "E008", message: "Error en la validación de OTP" } | If the OTP validation is not successful, the onError callback will return the error code E008. Please try again by entering the correct data for the OTP validation |
| PARAMETER | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| fieldType | FieldTypeEnum | NO | Set the field type if you want to control the event validity of a specific server-side field event |
| CODE | MESSAGE | EXAMPLE | DESCRIPTION |
|---|---|---|---|
| E009 | Error al limpiar el campo | { code: "E009", message: "Error al limpiar el campo" } | If the specified field type is invalid, the onError callback will return the error code E009. |