API Endpoints

Loyalty card

You can change the default "Text" and "Icon" used in payment method

Specific configuration parameters

ParameterDescription
payments.loyaltyCard.textString which will be used as display text during the Loyalty Card payment method (optional)
payments.loyaltyCard.iconString which will be used as display the icon during the Loyalty Card payment method, you should put a url as the parameter value (optional)

Usage Example

You will see the following content

Payment method of the loyalty card

<!DOCTYPE html>
<head>
    <title>LSW v3 Embed</title>
</head>
<body>
    <div id="instaleap-lsw-v3"></div>
</body>

<script src="https://xandar-lsw-v3.instaleap.io/lib/lsw.js"></script>
<script>
    const params = {
        job: "myJob",
        token: "myToken",
        container: "#instaleap-lsw-v3",
            payments: {
                loyaltyCard: {
                  text: "Custom loyalty card",
                  icon: "https://cdn-icons-png.flaticon.com/512/8977/8977814.png",                  icon: "https://cdn-icons-png.flaticon.com/512/8977/8977814.png",
                },
            }
       
    }
    window.instaleap.lsw.render(params)
</script>
</html>