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
To force the AMEX payment method, here is an example:
<script type="text/javascript">
$(document).ready(function(){
KR.setBrand("AMEX");
});
</script>