Parameters for opening payment form

The parameters required for Payment Page are passed in the object configObj or in the request URL (when opened in a separate tab). The list of required and optional parameters depends on the mode you choose for Payment Page opening.

For more information on customer data parameters, see Collecting customer data.

Warning: The protocol for opening the Payment Page payment form prohibits the use of the symbol ";" (semicolon) in the values of the passed parameters and in the request string.
Table 1. Payment Page invocation parameters
Parameter Mandatory Type Description Example
account_token No string The token of the bank card that will be used to perform a payment. In this case, on the generated payment page the bank card is preselected with the bank card details filled in.
Notice: Available in the Purchase and Card Verify modes.

For details, see Payments by using tokens

addendum_data No string

This parameter contains all the booking itinerary data such as booking number, check-in and check-out dates, and hotel guest name and is applicable only to payments in travel industry.

The value of this parameter is obtained by converting addendum data in a single string by using the Base64 algorithm. For more information on how to calculate the addendum_data value, see Using addendum with itinerary data

avs_post_code No string Customer's postal code passed in case of the AVS check. WS13 6LG
avs_street_address No string Customer's street address passed in case of the AVS check. 4 Breadmarket Street
baseUrl No string The basic URL for opening the payment form (when it is necessary to provide an actual URL)
best_before No string Date and time when the payment period expires. After the payment expiration date the customer is redirected to a page with the message that the time of possibility to proceed the payment is expired. Parameter is passed in the following format: YYYY-MM-DDThh:mm:ss±hh 2020-04-26T13:50:37+00:00
billing_address Custom string Street of the customer billing address 33 Store Street
billing_city Custom string City of the customer billing address London
billing_country Custom string Country of the customer billing address, in ISO 3166-1 alpha-2 format GB
billing_postal Custom string Postal code of the customer billing address BR1 1AA
billing_region Custom string Region or state of the customer billing address Greater London
billing_region_code No string

State, province, or region code in the ISO 3166-2 format. Example: DOR for Dorset.

If you specify this parameter, you need also to specify and populate the billing_country parameter.

DOR
booking_info No string A string containing the Base64 encoded booking data (details)
card_holder No string Name of the cardholder as specified on the card. When the parameter is passed, the value is displayed and editable on the payment form CARD HOLDER
card_operation_type No string Type of payment performed via payment card. The following options are available:
  • sale: payment with direct withdrawal of funds
  • auth: payment with held funds

For more information, see Purchase processing and Authorisation hold

sale
close_on_missclick No integer A parameter that specifies the action of the widget (opened in the modal window) when a customer clicks outside the widget area. The following options are available:
  • 1: The widget is closed
  • 0: The widget remains open. This option is set as default

For more information, see Opening Payment Page in a modal window

When working with Payment Page without using the merchant.js library, a boolean value can be specified in this parameter.

1
css_modal_wrap No string An additional CSS class for a modal window. For more information, see Opening Payment Page in a modal window modal-popup
customer_address Custom string Address of the customer Main Street, 12
customer_account_info No string

This parameter contains the customer account and contact information on record with the web service.

The value of this parameter is obtained by converting the customer data into a single string by using the Base64 algorithm. For more information, see 3‑D Secure authentication.

customer_account_number No string Customer account or e-wallet number, can be also the email address or phone number (specified using a country code and without the + sign) linked to the account example@mail.com
customer_birthplace Custom string Customer place of birth London
customer_city Custom string City of the customer address London
customer_country Custom string Country of the customer address in ISO 3166-1 alpha-2 format GB
customer_day_of_birth Custom string Customer date of birth, DD-MM-YYYY 12-12-1990
customer_email Custom string Customer e-mail.

Required for card payments if the customer's phone number is not passed and the capability of collecting such customer data is not implemented (details).

smith@gmail.com
customer_first_name Custom string Customer first name Jane
customer_id Mandatory for Card Tokenize, Purchase, Payout string Unique ID of the customer in your project. The data passed in the parameter is collected and displayed in Dashboard customer_341
customer_last_name Custom string Customer last name Smith
customer_middle_name Custom string Customer middle name Mary
customer_mpi_result No string

This parameter contains the information about the previous authentication procedure of the customer.

The value of this parameter is obtained by converting the authentication data into a single string by using the Base64 algorithm. For more information, see 3‑D Secure authentication.

customer_phone Custom string

Customer's phone number.
Generally, must be specified in full, with the country code, although in certain cases (such as card payments) the country code is not required.
Technically, the number must include from 4 to 24 digits, and if it is allowed within the project and payment method used, punctuation marks and special symbols may be used while specifying the number (such cases are usually mentioned separately).                                Required for card payments if the customer's email is not passed and the capability of collecting such customer data is not implemented (details).

443031237300
customer_security_code No string Customer account or e-wallet security code for payment confirmation 852923
customer_shipping No string

This parameter contains the shipping information.

The value of this parameter is obtained by converting the shipping data into a single string by using the Base64 algorithm. For more information, see 3‑D Secure authentication.

customer_ssn Custom integer The last 4 digits of the social security number in the USA 1234
customer_state Custom string State or region of the customer address Greater London
customer_street No string Street of the customer address Main
customer_zip Custom string Postal code of the customer address RdWC2N 5DU
debt_account No string The recipient's account number for debiting funds from the customer's card in order to repay the debt. Latin letters and numbers are allowed, the maximum length is 10 characters an9876170i
force_acs_new_window No integer The forced display mode with the ACS page opening in a new window despite the settings in Payment Page
  • 1: opening in a separate tab
  • 0 or not passed: opening as specified previously

When working with Payment Page without using the merchant.js library, a boolean value can be specified in this parameter.

1
force_payment_method No string The ID of the payment method that is opened to customers without an option to select another one. The list of codes is provided in Payment method codes card
force_payment_group No string

Identifier of the payment method group, the elements of which limit the choice of method in the payment form. When specifying this identifier, Payment Page displays buttons for selecting only the methods that are included in the specified group and are available within the project. At the same time, when this identifier is specified in a single request along with the code of a specific method in the force_payment_method parameter, the payment form is opened for making a purchase by using the specified method, without taking into account the selected group.

Currently only the Open Banking group of methods is selectable by using the openbanking identifier.

openbanking
force_payment_method_subtype No string The bank card type that is opened to customers by default if force_payment_method=card without an option to select another type. Also applies to the saved cards display. For available options see Payment card codes visa
hide No string The ID of the payment method that is hidden from customers on Payment Page. If it is necessary to hide several methods, identifiers are comma-separated. The list of codes is provided in Payment method codes card, cup-card
identify_doc_number No string Number of a customer identity document 6543234567
interface_type No string String containing information on the source of a payment request. The data is collected in a JSON object. Available value for the id parameter: 7Payment Page in iframe mode interface_type: {"id":7}
language_code Recommended string The language in which the payment page will be opened to the customer in ISO 639-1 alpha-2 format. By default, it is determined by the customer IP address en
merchant_callback_url No string The URL to deliver callbacks with information about specific target actions to. Useful when you need to change the callback URL for a specific request (details).
merchant_data No string The parameter for specifying extended information about the purchase in progress (for example, details of the services provided). Data is passed as a JSON object. For more information, see Specifying other extended purchase data.
merchant_fail_enabled No integer The parameter responsible for the possibility of returning customers to the project after a failed payment. For more information, see Options for redirecting customers to the web service 1
merchant_fail_redirect_mode No string Mode for opening the project page to which a customer is returned after a failed payment. For more information, see Options for redirecting customers to the web service iframe
merchant_fail_url No string The project page URL to which a customer is returned after a failed payment by clicking on the return button. For more information, see Options for redirecting customers to the web service http://example.com
merchant_return_enabled No integer The parameter responsible for the possibility of returning customers to the project at any payment step by clicking on the return button. For more information, see Options for redirecting customers to the web service 1
merchant_return_redirect_mode No string Mode for opening the project page to which a customer is returned at any payment step by clicking on the return button. For more information, see Options for redirecting customers to the web service iframe
merchant_return_url No string The project page URL to which a customer is returned at any payment step by clicking on the return button. For more information, see Options for redirecting customers to the web service http://example.com
merchant_success_enabled No integer The parameter responsible for the possibility of returning customers to the project after a succeeded payment. For more information, see Options for redirecting customers to the web service 1
merchant_success_redirect_mode No string Mode for opening the project page to which a customer is returned after a succeeded payment. For more information, see Options for redirecting customers to the web service iframe
merchant_success_url No string The project page URL to which a customer is returned after a successful payment by clicking on the return button. For more information, see Options for redirecting customers to the web service http://example.com
mode Mandatory for all modes, except Purchase string

Payment Page mode. The following values are available:

  • purchase: the Purchase mode. This mode is used by default
  • payout: the Payout mode
  • card_tokenize: the Card Tokenize mode
  • card_verify: the Card Verify mode
card_tokenize
moto_type No integer Parameter that indicates Mail Order/Telephone Order (MO/TO) payment. The following values are available:
  • 1: MO payment
  • 2: TO payment
2
payment_amount Mandatory for Purchase, Payout, Card Verify integer Payment amount specified in minor units of the payment currency. Restrictions:
  • for Purchase and Card Tokenize modes:
    • "minimum": 1
    • "maximum": 10000000000000
  • for Card Verify mode:
    • "minimum": 0
    • "maximum": 0
10000
payment_currency Mandatory for Purchase, Payout, Card Verify string Payment currency in ISO 4217 alpha-3 format USD
payment_description Recommended string Payment description Order 3178
payment_extra_param No string The parameter that contains extra payment processing settings. For more information regarding this option, you may apply to your Key Account Manager
payment_id Mandatory for Purchase, Payout, Card Verify string Identifier of the payment, must be unique within the project. It is case-insensitive and can contain up to 255 random characters. order_314
payment_merchant_risk No string

This parameter contains the purchase details and the authentication flow which is preferable for the merchant.

The value of this parameter is obtained by converting the customer data into a single string by using the Base64 algorithm. For more information, see 3‑D Secure authentication.

payment_methods_options No string A string containing the specific display options for the payment page opening or the payment method selection. The data is collected in a JSON object. For more information, see Methods in the sections on performing payments through Banks of South-East Asia
project_id Yes integer Unique ID of your project in the Payment Page system 133
receipt_data No string A string containing the coded data to send electronic sales receipt to a customer. The data is collected into a JSON object and encoded into Base64. For more information, see Sending receipts and notifications to customer
recipient_address No string The payout recipient's street address. Must not exceed 99 characters Via Dietro Duomo 36
recipient_card_holder No string The first and last name of the cardholder (as specified on the card). Must not exceed 255 characters Fran Petrarca
recipient_city No string The payout recipient's city. Must not exceed 25 characters Padova
recipient_country No string The payout recipient's country code in ISO 3166-1 alpha-2 IT
recipient_first_name No string The payout recipient's first name. Must not exceed 255 characters Fran
recipient_last_name No string The payout recipient's last name. Must not exceed 255 characters Petrarca
recipient_pan No string The recipient's card number
recipient_state No string The recipient's country subdivision code (state, province, region, or territory). The value of this parameter is the second element of a code for a subdivision (in ISO 3166-2), without the two-letter country code and the hyphen-minus used as a separator 34
recipient_wallet_id No string The wallet number. Must not exceed 64 characters WID20071304
recipient_wallet_owner No string The first and last name of the wallet owner. Must not exceed 255 characters Fran Petrarca
recurring No string A string containing details about a COF purchase as a JSON object—if the payment form is opened via the JavaScript library of ecommpay—or as a string generated as a result of URL encoding—if the payment form is opened via another method. For more information, see the COF purchase registration article.
recurring_register No integer

Parameter that indicates whether this payment should be registered as recurring (allowed values: 0 or 1).

When working with Payment Page without using the merchant.js library, a boolean value can be specified in this parameter.

1
redirect No integer A parameter that enables opening of the generated payment page in a separate tab. The following options are available:
  • 1: opening in a separate tab
  • 0 or not passed: opening as specified previously

For more information, see Opening Payment Page as a separate HTML page

When working with Payment Page without using the merchant.js library, a boolean value can be specified in this parameter.

1
redirect_fail_mode No string The mode for customer redirection when the payment failed. The following options are available:
  • iframe. This mode is used by default
  • parent_page
  • blank_page: opening in a new tab. Pop-up blocking should be disabled in the customer browser.
parent_page
redirect_fail_url No string The URL of the page in your project to which the customer is redirected when the payment failed. Redirection occurs automatically without additional actions from customers. If the blank_page mode is used, the page with the result is displayed on a separate tab, in other modes – is not displayed http://merchant.site.com
redirect_on_mobile No integer A parameter that enables opening of the generated payment page in a separate tab on mobile devices only. The following options are available:
  • 1: opening in a separate tab
  • 0 or not passed: opening as specified previously

For more information, see Opening Payment Page as a separate HTML page

When working with Payment Page without using the merchant.js library, a boolean value can be specified in this parameter.

1
redirect_success_mode No string The mode for customer redirection after a successful payment. The following options are available:
  • iframe. This mode is used by default
  • parent_page
  • blank_page: opening in a new tab. Pop-up blocking should be disabled in the customer browser.
parent_page
redirect_success_url No string The URL of the page in your project to which the customer is redirected after a successful payment. Redirection occurs automatically without additional actions from customers. If the blank_page mode is used, the page with the result is displayed on a separate tab, in other modes – is not displayed http://merchant.site.com
redirect_return_url No string The URL of the page in your project to which the customer is redirected from payment page on external provider site at any step before the payment is completed by clicking the return button. For more information about this functionality, refer to the ecommpay Key Account Manager http://merchant.site.com
redirect_tokenize_mode No string The mode for customer redirection once a token is generated in the Card Tokenize mode

The following options are available:

  • iframe. This mode is used by default
  • parent_page
parent_page
redirect_tokenize_url No string The URL of the page in your project to which the customer is redirected after a successful token generation in the Card Tokenize mode
region_code No string The customer country in ISO 3166-1 alpha-2 format. By default the region is determined by the IP address of the customer us
sender_address No string The payout sender's street address. Must not exceed 99 characters Via Certaldo 18
sender_city No string The payout sender's city. Must not exceed 25 characters Florence
sender_country No string The payout sender's country code in ISO 3166-1 alpha-2 IT
sender_first_name No string The payout sender's first name. Must not exceed 255 characters Gio
sender_last_name No string The payout sender's last name. Must not exceed 255 characters Boccaccio
sender_state No string The sender's country subdivision code (state, province, region, or territory). The value of this parameter is the second element of a code for a subdivision (in ISO 3166-2), without the two-letter country code and the hyphen-minus used as a separator 52
sender_wallet_id No string The number (identifier) of the payout sender's wallet. Must not exceed 64 characters WID16061313
sender_zip No string The postal code of the payout sender's address. Must not exceed 255 characters 50142
signature Yes string The signature to be passed in the request to open the payment page. For more information, see Signature generation and verification
style_id No integer The identifier assigned to the Payment Page design style that can be used in addition to the default style when you work with the payment form of the 5th generation (details) 6123
target_element No string The element in which the iframe of the payment page is embedded in the web page of your project. For more information, see Opening Payment Page in an iframe element of an HTML page pay_button_id
terminal_id No integer

The identifier assigned to the terminal with a style of the Payment Page design that can be used in addition to the default style when you work with the payment form of the 4th and earlier generations (details)

54
uuid Mandatory for Payout string The identifier received in a callback with information about the payout registration result that must be specified when the payment form is opened in the Payout operation mode. Must not exceed 64 characters Lm3Z/2ue9+o5GTY/sRnS+Aag==