Google & Apple Pay Demo
Dead Simple Integration
Integrating Google Pay and Apple Pay on the web in just a few lines of javascript with Payload.js and Secure Inputs.
<script src="https://payload.co/Payload.js"></script>
<script>
Payload('test_client_key_3bcr16ohAy8aEcwK3Vffs')
const checkout = new Payload.Form({
form: $('#checkout-form').get(0)
})
.applepay($('#apple-pay').get(0))
.googlepay($('#google-pay').get(0))
.on('processed', function(evt) {
console.log(evt.transaction_id)
})
</script>
See the full source code for this demo on GitHub.
For more information on integrating Payload, see the complete API Documentation.