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.
Example of integration (with smartForm)
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>