Skip to content

Return object with signature for JS #4

@zhukovra

Description

@zhukovra

Sample JS integration with configuration object:

<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>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions