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

Description

This function is used for directly offering a payment method by opening a pop-in (or a pop-up). The merchant decides on the payment method without giving a choice to the buyer.

This method is not compatible with the APPLE PAY payment method.

Example of integration (with smartForm)

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 implement this method, here is an example of code, as an information:

<script type="text/javascript">

  document.addEventListener('DOMContentLoaded', function (){
   KR.onFormReady(function (){
    KR.openPaymentMethod('SELECTED PAYMENT METHOD').then().catch()
    })
  });
  </script>
© 2025 {'|'} All rights reserved to Sogecommerce
25.18-1.11