The checkout.js JavaScript library allows simple payment integrations for merchant sites.
<html> <head> <script src="https://suncorp.gateway.mastercard.com/checkout/version/61/checkout.js" data-error="errorCallback" data-cancel="cancelCallback"> </script> <script type="text/javascript"> function errorCallback(error) { console.log(JSON.stringify(error)); } function cancelCallback() { console.log('Payment cancelled'); } Checkout.configure({ session: { id: '<your_initiate_checkout_session_ID>' }, order: { description: 'Ordered goods', id: '<unique_order_id>' }, interaction: { merchant: { name: 'Your merchant name', address: { line1: '200 Sample St', line2: '1234 Example Town' } } } }); </script> </head> <body> ... <div id="embed-target"> </div> <input type="button" value="Pay with Lightbox" onclick="Checkout.showLightbox();" /> <input type="button" value="Pay with Payment Page" onclick="Checkout.showPaymentPage();" /> ... </body> </html>