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
Parameter | Description |
---|---|
payments.cash.text | String which will be used as display text during the Cash payment method (optional) |
payments.terminal.text | String which will be used as display text during the Terminal payment method (optional) |
payments.prepaid.text | String which will be used as display text during the Prepaid payment method (optional) |
payments.loyaltyCard.text | String which will be used as display text during the Loyalty Card payment method (optional) |
payments.link.text | String which will be used as display text during the Link payment method (optional) |
payments.transfer.text | String 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: