Example payment page with Elio.js

Make sure to replace "form-id" with your generated form ID ;)

<body>
    <h1>Hey! Buy my awesome product</h1>
    <button onclick='pay()'>Pay</button>
</body>
<script type="text/javascript" src="https://eliopay.com/elio.js"></script>
<script>

function pay() {
    Elio.checkout("form-id", function(error, paymentId) {
        if (error) alert("An error occured during the payment :(")
        else alert("Thank you for buying our awesome product!")
    })
}

</script>