<html>
<head>
<!-- Adding libraries -->
<link rel="stylesheet" href="https://paymentpage.ecommpay.com/shared/merchant.css">
<script src="https://paymentpage.ecommpay.com/shared/merchant.js"></script>
<script type="text/javascript">var EP_HOST = 'https://paymentpage.ecommpay.com';</script>
</head>
<body>
<!-- HTML Web page code to add the Payment Page widget -->
<div class="container">
<div class="cart-info">...</div><div id="widget-container"></div>
</div>
<!-- JS command to open Payment Page -->
<script type="text/javascript">
EPayWidget.run({ payment_id: 'X03936', payment_amount: 2035, payment_currency: 'USD', project_id: 0, target_element: 'widget-container', signature: 'YWb6Z20ByxpQ30hfTIjaCCsVIwVynXV%2BVLenAm' });
</script>
</body>
</html>
Sample JS integration with configuration object: