• France
status page
Demo shops
assistance
FAQContact support
Search
Categories
Tags
Europe (English)
France
Spain
Europe (English)
India
Homepage
Use cases
Create a payment
Create an installment payment
Create a multi-card (split) payment
Create a payment by Alias (Token)
Create a payment link
Create a recurring payment
Manage subscriptions
Manage your transactions (refund, cancel...)
Analyze your reports
API docs
Embedded Form
REST API
Hosted payment
Mobile payment
File exchange
SDD mandates by REST API
Snippets
Payment methods
Plugins
Marketplace
Guides
Merchant Back Office
Back Office Expert
Functional guides

Presentation of the events

The JavaScript client supports events during integration: Initialize payment form.

You can view code samples on GitHub for integrating some of the events, by clicking: JS Examples - JQuery.

PARAMETER Description
KR.onBlur() One of the form fields loses focus. see KR.onFocus().
KR.onBrandChanged() Called when the card brand has been detected.
KR.onFormValid() The form is ready to be used.
KR.onError() Allows to be notified when an error occurs.
KR.throwCustomError() Allows you to customize an error.
KR.onFocus() One of the form fields gets focus.
KR.button.onClick() Obsolete. Called when the buyer clicks on the form button.
KR.button.onClick() Called when the buyer clicks on the form button.
KR.onSubmit() 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 )
KR.onTransactionCreated() Called when a transaction is created (accepted or rejected).
KR.on3dSecureAbort() 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.

Jobs
Legal
GDPR
25.28-1.11