Payment Page invocation parameters

This section lists all the parameters that can be used in requests for opening Payment Page. Each parameter record contains parameter name, type, and description as well as the information whether the parameter is required.

There are three sorts of parameters depending on whether they required in the requests:

  • strictly required—parameter is always required
  • optional—parameter is optional
  • required conditionally—parameter is required depending on the situation. See the parameter description for details.
Warning: The semicolon (";") symbol is never allowed in any parameter values in requests to Payment Page.
Table 1. Payment Page invocation parameters
Parameter Description

account_token
string, optional

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.
Restriction: Available in the Purchase and Card Verify modes.

For details, see Payments by using tokens

addendum_data
string, optional

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 into a single string by using the Base64 algorithm. For more information on how to calculate the addendum_data value, see Addendum with itinerary data in Payment Page

baseUrl
string, required conditionally

Basic Payment Page address.

Required if the basic Payment Page domain differs from the libraries domain (by default https://paymentpage.rocketpay.kz).

best_before
string, optional

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:mm.

Example: 2020-04-26T13:50:37+00:00

billing_address
string, required conditionally

Street of the customer billing address.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: 33 Store Street

billing_city
string, required conditionally

City of the customer billing address.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: London

billing_country
string, required conditionally

Country of the customer billing address, in ISO 3166-1 alpha-2 format.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: UK

billing_postal
string, required conditionally

Postcode of the customer billing address.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: 101000

billing_region
string, required conditionally

Region or state of the customer billing address.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: Greater London

billing_region_code
string, optional

State, province, or region code in the ISO 3166-2 format.

Example: SPE for Saint Petersburg, Russia.

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

Example: MOS

card_holder
string, optional

Name of the cardholder as specified on the card. When the parameter is passed, the value is displayed and editable on the payment form.

Example: JOHN DOW

card_operation_type
string, optional

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 with Payment Page and Authorization hold.

Example: sale

checkout_script
boolean, optional

This parameter allows you to choose whether to make a payment or to verify card by its token using an encryption script without entering CVV/CVC/CID. For more information, see Card data encryption script.

Example: 1

close_on_missclick
boolean, optional

This parameter specifies the action of the widget (opened in the modal window) when a customer clicks outside of the widget area. Possible values:
  • 1 The widget closes
  • 0 The widget remains open. This is the default value.

For more information, see Opening checkout page in a modal window.

Example: 1

css_modal_wrap
string, optional

An additional CSS class for a modal window. For more information, see Opening checkout page in a modal window.

Example: modal-popup

customer_address
string, required conditionally

Customer address.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: Main Street, 12

customer_birthplace
string, required conditionally

Customer place of birth.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: London

customer_city
string, required conditionally

City of the customer address.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: London

customer_country
string, required conditionally

Country of the customer address in ISO 3166-1 alpha-2 format.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: UK

customer_day_of_birth
string, required conditionally

Customer date of birth in the DD-MM-YYYY format.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: 12-12-1990

customer_email
string, strictly required

Customer email.

Example: johndoe@example.com

customer_first_name
string, strictly required

Customer first name.

Example: Jane

customer_id
string, strictly required

Unique ID of the customer in your project.

Example: customer_341

customer_last_name
string, strictly required

Customer last name.

Example: Smith

customer_middle_name
string, required conditionally

Customer middle name.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: Mary

customer_phone
string, required conditionally

Customer phone number. Must include the country code and contain from 4 to 24 digits without punctuation or special characters.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: 44991234567

customer_ssn
integer, required conditionally

The last 4 digits of the social security number in the USA.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: 1234

customer_state
string, required conditionally

State or region of the customer address.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: Greater London

customer_street
string, optional

Street of the customer address.

Example: Main

customer_zip
string, required conditionally

Postcode of the customer address.

Contact you account manager at Rocketpay to check whether this parameter is required.

Example: RdWC2N 5DU

debt_account
string, optional

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.

Example: an9876170i

descriptor
string, optional

Information which identifies the merchant that performs the operation. The maximum length is 13. It is possible to use letters of the Latin alphabet, digits, and the following symbols: # $ * ( ) - _ = + " ; : ? \ / , . ` ' ^

Example: Merchant_12

force_acs_new_window
boolean, optional

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
  • not passed: opening as specified previously

Example: 1

force_payment_method_subtype
string, optional

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 Supported payment cards.

Example: visa

identify_doc_number
string, optional

Number of a customer identity document.

Example: 6543234567

identify_doc_type
string, optional

Type of a customer identity document, whose number is passed in the identify_doc_number parameter.

Example: CC

language_code
string, optional

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.

Example: en

merchant_callback_url
string, optional

Use this parameter to specify the URL to which the payment platform will send callbacks related to the payment specified in the request.
Example:
http://example.com/callback

merchant_success_callback_url
string, optional

The URL which the payment platform will use to send the final callback to you if the payment is successfully completed.

merchant_decline_callback_url
string, optional

The URL which the payment platform will use to send the final callback to you if the payment is declined.

merchant_data
string, optional

The parameter for specifying extended information about the purchase in progress (for example, details of the services provided). Data can be passed in any form, for instance, as a JSON object encoded using the Base64 scheme.

merchant_fail_enabled
integer, optional

The parameter responsible for the possibility of returning customers to the project after a failed payment. For more information, see Options for returning customers to project after payment.

Example: 1

merchant_fail_redirect_mode
string, optional

Mode for opening the project page to which a customer is returned after a failed payment. For more information, see Options for returning customers to project after payment.

Example: iframe

merchant_fail_url
string, optional

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 returning customers to project after payment.

Example: http://example.com

merchant_return_enabled
integer, optional

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 returning customers to project after payment.

Example: 1

merchant_return_redirect_mode
string, optional

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 returning customers to project after payment.

Example: iframe

merchant_return_url
string, optional

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 returning customers to project after payment.

Example: http://example.com

merchant_success_enabled
integer, optional

The parameter responsible for the possibility of returning customers to the project after a succeeded payment. For more information, see Options for returning customers to project after payment.

Example: 1

merchant_success_redirect_mode
string, optional

Mode for opening the project page to which a customer is returned after a succeeded payment. For more information, see Options for returning customers to project after payment.

Example: iframe

merchant_success_url
string, optional

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 returning customers to project after payment.

Example: http://example.com

mode
string, strictly required

Payment Page mode.

Possible values:

  • purchase—the Purchase mode. This is the default value. You can skip this parameter, if you intend to use the Purchase mode.
  • card_tokenize— the Card Tokenize mode
  • card_verify—the Card Verify mode

Example: card_tokenize

payment_amount
integer, strictly required

Payment amount in minor currency units without any decimal point or comma except for cases where the currency does not have any minor currency units. If the currency has no minor units (that is, the number of digits for minor currency units is zero), then you must set this parameter to the amount in the major currency units. For the information on whether the currency has any minor units, see Currency codes.

In Purchase and Card Tokenize mode, some restrictions apply to the value of this parameter:

  • the smallest acceptable value is 1
  • the largest acceptable value is 10000000000000

In the Card Verify mode, the only acceptable value is 0 (zero).

Example: 10000

payment_currency
string, strictly required

Payment currency in ISO 4217 alpha-3 format.

Example: USD

payment_description
string, optional

Payment description.
Note: This parameter is optional, but it is strongly recommended to use it in you requests.

Example: Order 3178

payment_extra_param
string, optional

The parameter that contains extra payment processing settings. For more information regarding this option, you may apply to your Key Account Manager.

payment_id
string, strictly required

Unique ID of the payment in your project.

Example: Z4205

project_id
integer, strictly required

Unique ID of your project in the Payment Page system.

Example: 133

receipt_data
string, optional

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

recurring
string, optional

A string containing coded registration and COF payment parameters. The data is collected into a JSON object and encoded by using URL encoding. The structure of the JSON object is given in API, the scheme recurringinfo.

For more information, see COF purchase registration

recurring_register
boolean, optional

Parameter that indicates whether this payment should be registered as recurring.

Example: 1

redirect
boolean, optional

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
  • not passed: opening as specified previously

For more information, see Opening Payment Page in a separate browser tab.

Example: 1

redirect_fail_mode
string, optional

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.

Example: parent_page

redirect_fail_url
string, optional

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.

Example: http://merchant.site.com

redirect_on_mobile
boolean, optional

This parameter allows you to open the payment page in a separate tab on mobile devices only. Possible values:

  • 1: opening in a separate tab
  • not passed: opening as specified in the payment page invocation parameters

For more information, see Opening Payment Page by using a Command.

Example: 1

redirect_success_mode
string, optional

The mode for customer redirection after a successful payment. Possible values:
  • 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.

Example: parent_page

redirect_success_url
string, optional

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.

Example: http://merchant.site.com

redirect_return_url
string, optional

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 Rocketpay Key Account Manager.

Example: http://merchant.example.com

redirect_tokenize_mode
string, optional

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

Example: parent_page

redirect_tokenize_url
string, optional

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
string, optional

The customer country in ISO 3166-1 alpha-2 format. By default the region is determined by the IP address of the customer.

Example: us

signature
string, strictly required

The signature to be passed in the request to open the payment page. For more information, see Signature generation and verification.

target_element
string, optional

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 embedded in a web page.

Example: pay_button_id

terminal_id
integer, optional

Unique ID of the Payment Page template which you want to run despite the regional and A/B test settings.

Example: 54