Download Invoice

You can download an invoice by setting the parameter "hasInvoice", however if the job has not invoice, you can't see the "See invoice" button.

Implementation



Available parameters

Parameter libParameter webDescription
hasInvoicehasInvoiceAllows you to choose render the "See invoice" button element in the application
default: "false"
options: "false" || "true"

Code

<!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/status.js"></script>
<script>
    const params = {
        job: "myJob",
        token: "myToken",
        container: "#instaleap-lsw-v3",
        hasInvoice: "true"
    }
    window.instaleap.status.render(params)
</script>
</html>
https://xandar-lsw-v3.instaleap.io/status?job=myJob&token=myToken&hasInvoice=true

Demo


🤓

NOTE: Please do not modify the Demo, this is a visual aid.