PayBeagle Samples: Integration Code

[Imagine this page as the "checkout" page on your website]


<!-- START PAYBEAGLE INTEGRATION -->
<div id="payBeagleHostedPlugin"></div>
<script type="text/javascript" src="https://sandbox.paybeagle.com/static/hosted.js"></script>
<script type="text/javascript">
var payment = new PayBeagle({
 'type':'REDIRECT',
 'userID':'SandboxUser',
 'userPassword':'Pa55W0rd*2015',
 'amount':'6.00',
 'orderRef':'0001',
 'orderDescription':'Payment For Item 0001'
});
payment.execute();
</script>
<noscript>Sorry, you must enable javascript to use our payment system</noscript>
<!-- END PAYBEAGLE INTEGRATION -->

 

This code will not be visible on your website, and will automatically generate a payment page.
For the purposes of this demonstration, you must click the button below to launch the payment page.