• 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

KR.smartForm.onClick()

DESCRIPTION

KR.smartForm.onClick() allows you to perform custom processing before the JavaScript client validates the form and makes the call to create a transaction. KR.smartForm.onClick() accepts either a callback or a Promise as a parameter.

You can stop the execution string by returning false at the end of processing:

Return value Behavior
false The execution is interrupted. Error handling does not take place. The transaction is not created.
true The execution continues normally when the callback is executed.

You must implement the function described in the header of your payment page, after loading our main JavaScript library (kr-payment-form.min.js), as well as the associated style sheets.

Jobs
Legal
GDPR
25.25.0-1.11