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>