Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return object with signature for JS #4

Open
zhukovra opened this issue Jul 10, 2018 · 0 comments
Open

Return object with signature for JS #4

zhukovra opened this issue Jul 10, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@zhukovra
Copy link
Contributor

zhukovra commented Jul 10, 2018

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>
@zhukovra zhukovra self-assigned this Jul 10, 2018
@zhukovra zhukovra added the enhancement New feature or request label Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant