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 lib | Parameter web | Description |
|---|---|---|
hasInvoice | hasInvoice | Allows you to choose render the "See invoice" button element in the application |
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=trueDemo
NOTE: Please do not modify the Demo, this is a visual aid.
Updated 27 days ago
