• 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.setBrand()

Description

Forces the detection of the payment method.The method takes as parameter the name of the payment method. The supported values are (not exhaustive):.

  • Visa
  • VISA_DEBIT
  • VISA_ELECTRON
  • mastercard
  • MASTERCARD_DEBIT
  • maestro
  • Amex
  • CB
  • (...)

Caution: If you set another value, it will be sent unchanged to the payment platform. If the value is not supported by your store configuration, no transaction will be created.

To re-enable automatic detection, call KR.setBrand() without any parameters.

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.

To force the AMEX payment method, here is an example:

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