Opening Payment Page in a separate browser tab

You can open a generated payment page in a new browser tab (blank page) or in a current browser tab (parent page) for all or mobile devices only.

Redirect on all devices with passing parameters in an object

You can open a payment page for a customer in a separate browser tab, even if the default payment page is integrated into your project web page.

Tip: To open a generated default payment page that is integrated into your project web page, in a separate tab of the browser, pass the parameter redirect=1 in configObj. For the list of parameters, see Payment Page invocation parameters.

Redirect on all devices with passing link

You can open a generated payment page in a separate browser tab without integrating it into your project. You can use HTTP GET and POST methods.

Note: If you use only this method to open a payment page, you don't need to integrate the widget libraries into your system.
Tip: To open a payment page in a separate browser tab, without integrating it into your web page, redirect the customer to a link with the following structure:
https://paymentpage.ecommpay.com/payment?<parameters>

where:

<parameters> is the list of the required and optional parameters. For more information about the list of parameters, see Payment Page invocation parameters.

Figure: Example of a link to open a payment page in a separate browser tab

https://paymentpage.ecommpay.com/payment?project_id=0&payment_id=70872663&language_code=en
                 &payment_amount=95&payment_currency=USD
                 &signature=YWb6Z20ByxpQ30hfTIjaCCsVIwVynXV%2BVLe

To set up the size of the page inserted in the iframe, pass the width and height values in the redirect_window_height and redirect_window_width parameters included in the payment_methods_options string in the request or Payment Page opening:

payment_methods_options={"redirect_window_height": 1200, "redirect_window_width": 1200}

To set up the size of the page for the specific payment method selected by a customer, also specify the payment method code:

payment_methods_options={"card": {"redirect_window_height": 1200, "redirect_window_width": 1200}}

If you need to select several methods – codes are separated by commas. The full list of payment method codes see in IDs of supported payment methods.

Redirect only on mobile devices

In this case, the payment page opens in a separate tab on mobile devices and by the chosen method on the other devices.

Tip: To implement redirect only on mobile devices, pass the redirect_on_mobile=true in configObj.