Implement via data attributes
Activate a Fiuu seamless without writing JavaScript. Set data-toggle="molpayseamless" on a controller element, like a button, along with a data-mpsamount="1.01" to set value.
< button type="button" data-toggle="molpayseamless">
Pay by Maybank2u
< /button >
Implement via JavaScript
Call a Fiuu seamless with id "myPay" with a single line of JavaScript:
$( document ).ready(function() {
var options = {
mpsmerchantid: "dazala",
mpschannel: "maybank2u",
mpsamount: "1.20",
mpsorderid: "TEST728638391",
mpsbill_name: "Peter Brown",
...
};
$('#myPay').MOLPaySeamless(options)
});