• France
status page
demonstrations
assistance
FAQContact support
Search
Categories
Tags
English
French
English
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
Snippets
Payment methods
Plugins
Guides
Merchant Back Office
Functional guides

KR.setFormConfig()

Description

This method allows to override the initialization parameters , as well as the following elements:

Use Description
KR.setFormConfig({formToken: "NEW_FORM_TOKEN"}); Changes the current formToken.
KR.setFormConfig({language: "fr-FR"}); Changes the language of the payment form and error messages.
KR.setFormConfig({'kr-label-do-register': 'custom'}) Sets the label of the "Save my card" checkbox

This method returns a promise.

Example of integration

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.

Here is an example for setting the language of the payment form to English :

<script type="text/javascript">
    $(document).ready(function(){
          KR.setFormConfig({language:"en-EN"});
    });
</script>
© 2025 {'|'} All rights reserved to Scellius
25.18-1.11