Presentation of the events
The JavaScript client supports events during integration: Initialize payment form.
PARAMETER | Description |
---|---|
One of the form fields loses focus. see KR.onFocus(). | |
Called when the card brand has been detected. | |
The form is ready to be used. | |
Allows to be notified when an error occurs. | |
KR.throwCustomError() | Allows you to customize an error. |
One of the form fields gets focus. | |
KR.button.onClick() | Obsolete. Called when the buyer clicks on the form button. |
Called when the buyer clicks on the form button. | |
Called just before the form is posted. | |
KR.onFormCreated() | The payment form is ready but the content of iframes has not loaded yet. |
KR.onFormReady() | The form is ready to be used. |
KR.onLoaded() | First event called before the form is created. |
KR.onPopinClosed() | Emits an event when the form pop-in is closed (case Pop-In: rapid testing) |
KR.wallet.onTabChange() | Detects caps lock in case of a wallet (see Buyer wallet management ) |
Called when a transaction is created (accepted or rejected). | |
Called when 3DS authentication is abandoned by the user. |
The following events are obsolete and are no longer supported. They should not be used :.
KR.onFormReadyListener() KR.onFormCreateListener()
All events return promises, allowing you to integrate them into a chain. See Working in asynchronous environment for more information.