Custom payments method text

You can change the default "Text" used in payment methods by setting the "text" parameter in each payment method.

The "Text" configuration are being set in the "payments" attribute of the configuration object.

Specific configuration parameters

ParameterDescription
payments.cash.textString which will be used as display text during the Cash payment method (optional)
payments.terminal.textString which will be used as display text during the Terminal payment method (optional)
payments.prepaid.textString which will be used as display text during the Prepaid payment method (optional)
payments.loyaltyCard.textString which will be used as display text during the Loyalty Card payment method (optional)
payments.link.textString which will be used as display text during the Link payment method (optional)
payments.transfer.textString which will be used as display text during the Transfer payment method (optional)

Usage Example

Consider the following example:

<!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: {
                cash: {
                  text: "Custom cash",
                },
              	terminal: {
		      				text: "Custom terminal (Dataphone)",
                },
                prepaid: {
                  text: "Custom prepaid",
                },
                loyaltyCard: {
                  text: "Custom loyalty card",
                },
                link: {
                  text: "Custom link",
                },
                transfer: {
                  text: "Custom transfer",
                },
            },
    }
    window.instaleap.lsw.render(params)
</script>
</html>

You will see the following content:

Cash

Terminal

Prepaid

Loyalty Card

Link

Transfer