--- $schema: "https://developers.ecommpay.com/schemas/frontmatter.json" schema_version: "1.0" content: id: "en_PP_Parameters" type: "article" title: "Payment Page API specification" description: "An API specification with the description of data structures used in requests for opening Payment Page." language: "en" status: "current" date_modified: "2026-11-17T13:29:40Z" hash: "sha256:218ee05c0d133d0451092e3e6a56b0903400c59472b3be30cc58e30c7fee6891" urls: canonical: "https://developers.ecommpay.com/en/en_PP_Parameters.html" markdown: "https://developers.ecommpay.com/en/en_PP_Parameters.md" navigation: parent: "https://developers.ecommpay.com/en/en_PP_about.md" index: "https://developers.ecommpay.com/en/index.md" in_corpus: true ai_context: "The AI-readable Markdown mirror of the HTML documentation page. It can be used to get detailed information about the topic." --- # Payment Page API specification {#en_PP_Parameters} An API specification with the description of data structures used in requests for opening Payment Page. This article describes parameters used to open Payment Page, including basic information about them and links to related articles, which contain descriptions of the parameters' functionality and set out possible scenarios for their use. Parameters marked in this list as required must be included in all Payment Page callsintended to process payments. In the Card Tokenize mode, the following parameters are *not* required: `payment_amount`, `payment_currency`, `payment_id`. Parameters marked in this list as optional can be used as additional parameters for specific projects and payment methods.Moreover, the inclusion of some parameters is recommended in order to avoid the customer being subjected to the 3‑D Secure authentication procedure \(i.e., undergo authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\) and having to provide [additional payment information](en_pp_clarification.md), as well as for other improvements to custom scenarios and the general functionality of the payment form. If you have any additional questions about whether specific parameters are required or recommended for different individual use cases, consult the existing documentation and the Ecommpay technical support specialists. |Parameter|Description| |---------|-----------| |`account_token` string, optional |Payment instrument token. Consists of an identifier obtained for a specific payment instrument from the payment platform when data for that instrument is saved. Can be used to perform payments using that saved data \(i.e., when [making a purchase](en_PP_Payment_by_token.md)\). Example: `42ab631449a78914502803aed8a0e5a728d558035d29a56f4dcc136c6bfc3021` | |`additional_info` string, optional |String object containing additional information that may be relevant for payment processing. Consists of a string obtained by encoding a JSON object using the Base64 encoding scheme.The JSON object can include various combinations of elements from the list of supported data. - `integration_metadata`, object—object containing information about how the payment was technically initiated: - `originators`, array of objects—array of objects containing information about the components used to initiate the payment \(on the merchant's web service; up to six objects\): - `name`, string—name of the service via which the payment was initiated, in the form of uppercase letters, digits, and underscores \(\_\) instead of spaces \(for example, `COSMO_GAMES_STORE`\) - `module_name`, string—name of the technical module via which the payment was initiated, for example, `cosmoshopPlugin` - `module_version`, string—version number of the technical module via which the payment was initiated, for example, `2.1` - `session_reference`, string—identifier of the operation or session within the web service, as a universally unique identifier version 7 \(UUIDv7\) in accordance with [RFC 9562](https://datatracker.ietf.org/doc/html/rfc9562), for example, `018b163d-0b83-7ba0-b837-da575d0ff824` - `klarna_network_session_token`, string—token received from a payment system or provider and intended for secure interaction within a session \(for example, [Klarna Network Session Token](https://docs.klarna.com/klarna-network-distribution/payment-authorization/authorization-resources/klarna-network-session-token/)\) - `klarna_network_data`, string—string object that contains specific information that can be used for ensuring interoperability between Klarna and it's partners. Information specified in this parameter can complement information specified in other parameters. The value length must be between 1 and 10240 characters \(inclusive\). The object must be formatted as follows: ``` {#codeblock_kxv_5c4_pjc} "{\"content\":{\"customer_account_info\":[{\"unique_account_identifier\":\"test@example.com\",\"account_registration_date\":\"2017-02-13T10:49:20Z\",\"account_last_modified\":\"2019-03-13T11:45:27Z\"}]},\"content_type\":\"application/vnd.klarna.internal.emd-v2+json\"}" ``` ``` {#codeblock_ynm_dwr_1jc} "integration_metadata":{ "originators":[{ "module_name":"cosmoshopPlugin", "module_version":"2.1", "name":"COSMO_GAMES_STORE", "session_reference":"018b163d-0b83-7ba0-b837-da575d0ff824" }] }, "klarna_network_session_token":"453", "klarna_network_data": {\"content\":{\"customer_account_info\":[{\"unique_account_identifier\": \"test@gmail.com\",\"account_registration_date\":\"2017-02-13T10:49:20Z\",\"account_last_modified\":\"2019-03-13T11:45:27Z\"}]},\"content_type\":\"application/vnd.klarna.internal.emd-v2+json\"}" ``` ``` {#codeblock_ohl_ql5_wkc} ewogICJpbnRlZ3JhdGlvbl9tZXRhZGF0YSI6IHsKICAgICJvcmlnaW5hdG9ycyI6IFsKICAgICAgewogICAgICAgICJtb2R1bGVfbmFtZSI6ICJjb3Ntb3Nob3BQbHVnaW4iLAogICAgICAgICJtb2R1bGVfdmVyc2lvbiI6ICIyLjEiLAogICAgICAgICJuYW1lIjogIkNPU01PX0dBTUVTX1NUT1JFIiwKICAgICAgICAic2Vzc2lvbl9yZWZlcmVuY2UiOiAiMDE4YjE2M2QtMGI4My03YmEwLWI4MzctZGE1NzVkMGZmODI0IgogICAgICB9CiAgICBdCiAgfSwKICAia2xhcm5hX25ldHdvcmtfc2Vzc2lvbl90b2tlbiI6ICJrcm46bmV0d29yazpldTE6dGVzdDpzZXNzaW9uLXRva2VuOmV5SmhiR2NpT2lKRlV6STFOaUlzSW5SNWNDSTZJa3BYVkNJc0ltdHBaQ0k2SW1ZMFpUaGhaVEJqTFdReU5qWXRORFkwWmkwNU9XTmpMV1l5TmpjeVltVmpPV0ppTkNKOS5leUp6YUc5d2NHbHVaMTl6WlhOemFXOXVYMmxrSWpvaWEzSnVPbk5vYjNCd2FXNW5PbVYxTVRwMFpYTjBPbk5sYzNOcGIyNDZPV1JpTkRNNU0yWXRNbUpqTUMwME1EazNMV0ZsTWpndE9XRmlZekE1TlRrNU1qY3lJaXdpY0dGNWJXVnVkRjl5WlhGMVpYTjBjeUk2VzEwc0luQnlaVjl4ZFdGc2FXWnBZMkYwYVc5dUlqcDdmU3dpYVhOeklqb2ljMlZ6YzJsdmJpMWhZM0YxYVhKcGJtY3RjMlZ5ZG1salpTSXNJblpsY2lJNklqRXVNQzR3SWl3aWFXRjBJam94TnpnMk1ERXhNVFl5TENKbGVIQWlPakUzT0RZd01UUTNOako5LlY3cmNpd1lLTlBVYi00Ql8tc0o3ZFdWUmtTVE5jQ21kd2RmMV9XUW41WmZqVkVLaDVVYV9nRFVYQVFSYUhpbEI4SkxNMFlPRFFYY0FkeTgxT05MVGZRIiwKICAia2xhcm5hX25ldHdvcmtfZGF0YSI6ICJ7XCJjb250ZW50X3R5cGVcIjpcInZuZC5rbGFybmEubmV0d29yay1kYXRhLnYyK2pzb25cIixcImNvbnRlbnRcIjp7XCJvcGVyYXRpb25cIjpcInBheW1lbnRfcmVxdWVzdFwiLFwicmVxdWVzdFwiOntcInN1cHBsZW1lbnRhcnlfcHVyY2hhc2VfZGF0YVwiOntcInB1cmNoYXNlX3JlZmVyZW5jZVwiOlwiS0xBUk5BX1NBTEVfT1JERVJfSURfMjAyNl8wNl8xNV8xMl8xN18wNl8wNTQ4MDhfNVJ4SVVcIixcImN1c3RvbWVyXCI6e1wiaWRlbnRpdHlfaWRlbnRpZmljYXRpb25cIjp7XCJudW1iZXJcIjpcIjE5ODUwNCoqKioqKjEyMzRcIixcImNvdW50cnlcIjpcIlNFXCJ9LFwiY3VzdG9tZXJfYWNjb3VudFwiOntcImxveWFsdHlfbGV2ZWxcIjpcIkhJR0hcIixcImNyZWF0ZWRfYXRcIjpcIjIwMjEtMDItMTBUMDk6MTc6MTJaXCJ9LFwiY3VzdG9tZXJfZGV2aWNlXCI6e1wiaXBfYWRkcmVzc1wiOlwiMS4wLjAuNFwifX0sXCJsaW5lX2l0ZW1zXCI6W3tcIm5hbWVcIjpcIkxlbm92byBUaGlua1BhZCBYMSBDYXJib24gR2VuIDEyXCIsXCJxdWFudGl0eVwiOjEsXCJ0b3RhbF9hbW91bnRcIjoxODk5MDB9XX19fX0iCn0= ``` | |`allow_partial_approval` integer, optional |Indicator that specifies whether partial approval is allowed for performing the required action. Can have one of the following values: - `0`—partial approval is not allowed - `1`—partial approval is allowed Example: `1` | |`avs_post_code` string, optional |The postal code of the customer to be used in the [Address Verification Service](en_PP_avs.md) check. Example: `WS13 6LG` | |`avs_street_address` string, optional |The address of the customer to be used in the [Address Verification Service](en_PP_avs.md) check. Consists of a house number and a street name. Example: `4 Breadmarket Street` | |`baseUrl` string, optional |The base URL used to open the payment form. Must be specified whena root address different from the default one \(https://paymentpage.ecommpay.com\) has been approved by the Ecommpay account manager, in cases where the address needs to be provided explicitly. Example: `https://cosmopage.site.com` | |`best_before` string, optional |The date and time in the specified timezone until which the customer is able to use the payment form to confirm their targeted action \(see [this article](en_pp_time_limit.md)\). Should be specified as follows: `YYYY-MM-DDThh:mm:ss`±`hh` or `YYYY-MM-DDThh:mm:ss`±`hh:mm`. The time allocated for working with the form cannot exceed 30 days from the moment when the request for opening Payment Page was sent. Example: `2024-04-26T13:50:37+00` | |`billing_address` string, optional |The house number\(including any additional parts of the address such as building indicators and apartment numbers\) andthe name of the street in the customer's billing address. When the parameter is passed for card payments, data contained in this parameter may serve to improve the probability of a successful 3‑D Secure authentication without any further input from the customer \(i.e., authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\). Example: `33 Store Street` | |`billing_city` string, optional |The name of the city in the customer's billing address. When the parameter is passed for card payments, data contained in this parameter may serve to improve the probability of a successful 3‑D Secure authentication without any further input from the customer \(i.e., authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\). Example: `London` | |`billing_country` string, optional |The country code in the customer's billing address. Specified in the ISO 3166-1 alpha-2 format. When the parameter is passed for card payments, data contained in this parameter may serve to improve the probability of a successful 3‑D Secure authentication without any further input from the customer \(i.e., authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\). Pattern: `^[A-Z]{2}$`. Example: `GB` | |`billing_postal` string, optional |The postal code in the customer's billing address. When the parameter is passed for card payments, data contained in this parameter may serve to improve the probability of a successful 3‑D Secure authentication without any further input from the customer \(i.e., authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\). Example: `BR1 1AA` | |`billing_region` string, optional |The name of the region\(i.e., state, province, or other administrative division type\) in the customer's billing address. When the parameter is passed for card payments, data contained in this parameter may serve to improve the probability of a successful 3‑D Secure authentication without any further input from the customer \(i.e., authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\). Example: `Greater London` | |`billing_region_code` string, optional |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. This parameter should be specified in requests where the `billing_country` parameter is also specified.When the parameter is passed for card payments, data contained in this parameter may serve to improve the probability of a successful 3‑D Secure authentication without any further input from the customer \(i.e., authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\). Pattern: `^[0-9A-Z]{1,3}$`. Example: `DOR` | |`booking_info` string, optional |Booking information tracked by the web service. Consists of a string obtained by encoding a JSON object using the Base64 encoding scheme.The JSON object can include various combinations of elements from the list of supported data. Can be used to record and track relevant data about payments rendered for services by various organisations \(see [this article](en_pp_additional_data.md)\). - `bookers`, array—the array with the information about the customers for whom the service is booked. Each element of this array contains: - `first_name`, string—the name of the customer provided at the time of booking - `last_name`, string—the last name of the customer provided at the time of booking - `email`, string—the email provided at the time of booking - `items`, array—the array with the information about separate services included in the booking. Each element of this array contains: - `description`, string—description of the service included in the booking - `start_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—starting date of the service included in the booking - `end_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—ending date of the service included in the booking - `start_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—starting date of the booked service - `end_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—ending date of the booked service - `description`, string—a free-form description of the booked service - `total`, integer—the total cost of the booking - `pax`, integer—the number of people per booking - `reference`, string—the booking reference, which can be the URL, the name of the booked service, or its code in the merchant web service - `id`, string—the identifier of the booking, unique in the merchant web service ``` {#codeblock_lzg_gp1_xkc .language-json} "booking_info": { "start_date": "12-08-2026", "end_date": "14-08-2026", "description": "Sideris music festival full pass", "total": 200000, "pax": 2, "bookers": [ { "first_name": "William", "last_name": "Herschel", "email": "rsfellow@mail.com" }, { "first_name": "Caroline", "last_name": "Herschel", "email": "salariedastronomer@mail.com" } ], "items":[ { "description": "VIP Arrival", "start_date": "12-08-2026", "end_date": "12-08-2026" }, { "description": "Hotel", "start_date": "12-08-2026", "end_date": "14-08-2026" }, { "description": "Concerts", "start_date": "12-08-2026", "end_date": "14-08-2026" }, { "description": "VIP Departure", "start_date": "14-08-2026", "end_date": "14-08-2026" } ], "reference": "musicfestlink", "id": "83" } ``` ``` {#codeblock_yzq_5p1_xkc} ewogICJzdGFydF9kYXRlIjogIjEyLTA4LTIwMjYiLAogICJlbmRfZGF0ZSI6ICIxNC0wOC0yMDI2IiwKICAiZGVzY3JpcHRpb24iOiAiU2lkZXJpcyBtdXNpYyBmZXN0aXZhbCBmdWxsIHBhc3MiLAogICJ0b3RhbCI6IDIwMDAwMCwKICAicGF4IjogMiwKICAiYm9va2VycyI6IFsKICAgICB7CiAgICAgICAgImZpcnN0X25hbWUiOiAiV2lsbGlhbSIsCiAgICAgICAgImxhc3RfbmFtZSI6ICJIZXJzY2hlbCIsCiAgICAgICAgImVtYWlsIjogInJzZmVsbG93QG1haWwuY29tIgogICAgIH0sCiAgICAgewogICAgICAgICJmaXJzdF9uYW1lIjogIkNhcm9saW5lIiwKICAgICAgICAibGFzdF9uYW1lIjogIkhlcnNjaGVsIiwKICAgICAgICAiZW1haWwiOiAic2FsYXJpZWRhc3Ryb25vbWVyQG1haWwuY29tIgogICAgIH0KICBdLCAgICAgICAgCiAgIml0ZW1zIjpbCiAgICAgewogICAgICAgICJkZXNjcmlwdGlvbiI6ICJWSVAgQXJyaXZhbCIsCiAgICAgICAgInN0YXJ0X2RhdGUiOiAiMTItMDgtMjAyNiIsCiAgICAgICAgImVuZF9kYXRlIjogIjEyLTA4LTIwMjYiCiAgICAgfSwKICAgICB7CiAgICAgICAgImRlc2NyaXB0aW9uIjogIkhvdGVsIiwKICAgICAgICAic3RhcnRfZGF0ZSI6ICIxMi0wOC0yMDI2IiwKICAgICAgICAiZW5kX2RhdGUiOiAiMTQtMDgtMjAyNiIKICAgICB9LAogICAgIHsKICAgICAgICAiZGVzY3JpcHRpb24iOiAiQ29uY2VydHMiLAogICAgICAgICJzdGFydF9kYXRlIjogIjEyLTA4LTIwMjYiLAogICAgICAgICJlbmRfZGF0ZSI6ICIxNC0wOC0yMDI2IgogICAgIH0sCiAgICAgewogICAgICAgICJkZXNjcmlwdGlvbiI6ICJWSVAgRGVwYXJ0dXJlIiwKICAgICAgICAic3RhcnRfZGF0ZSI6ICIxNC0wOC0yMDI2IiwKICAgICAgICAiZW5kX2RhdGUiOiAiMTQtMDgtMjAyNiIKICAgICB9CiAgXSwKICAicmVmZXJlbmNlIjogIm11c2ljZmVzdGxpbmsiLAogICJpZCI6ICI4MyIKfQ== ``` | |`card_holder` string, optional |The first and last name of the payment card holder. Data specified in this parameter can be used to fill in the corresponding fields on the payment form in advance—this data can then still be edited by the customer—and should be spelled as specified on the card and adhere to the rules for specifying names \(see [this article](en_faq_payment_processing.md#en_faq_payment_processing__section_dbx_kby_t1c)\). Pattern: `^[\p\{L}\p\{M}\s\-\'.]{1,255}$`. Example: `John Doe` | |`close_on_missclick` integer \(boolean\*\), optional |Indicator that specifies the action to be taken if the customer clicks outside of the borders of a payment form opened in a [modal window](en_PP_method_ModalWindow.md). Should be specified for calls that make use of a modal window. Can have one of the following values: - `0`—do not close the payment form \(used by default\), - `1`—close the form. If the `merchant.js` library is used \([details](en_pp_interaction_organisation.md)\), this parameter can be specified as a boolean value and set to either `false` or `true`. Example: `1` | |`css_modal_wrap` string, optional |Indicator for an additional CSS class to wrap the payment form inside of a modal window. Should be specified for calls that make use of a modal window. Example: `CosmoshopModal` | |`customer_address` string, optional |The name of the street and the house number\(including any additional parts of the address such as building indicators and apartment numbers\) in the customer's address, separated by a comma. Generally, the length of the string cannot be more than 255 characters, but it may be further restricted depending on the specific method.Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `Main Street, 12` | |`customer_account_info` string, optional |Information about the customer's account and contact detailsobtained by the web service. Consists of a string obtained by encoding a JSON object using the Base64 encoding scheme.The JSON object can include the `customer` object containing various combinations of elements from the list of supported data. When passed for card purchases, data contained in this parameter may serve to improve the probability of a successful 3‑D Secure authentication without any further input from the customer \(i.e., authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\). - `address_match`, string—indicates whether the customer's billing address matches the address specified in the `shipping` object: - `Y`—addresses match - `N`—addresses do not match - `home_phone`, string—the customer's home phone number, contains between 4 and 24 digits - `work_phone`, string—the customer's work phone number, contains between 4 and 24 digits - `account`, object—the object with the customer's account information kept on file by the merchant: - `activity_day`, integer—number of payment attempts in the last 24 hours, 3 characters maximum - `activity_year`, integer—number of payment attempts in the last 365 days, 3 characters maximum - `additional`, string—additional information about the customer's account in free text, for example, its identifier. Can contain up to 64 characters - `age_indicator`, string, `^0[1-5]$`—number of days since the customer account was created. Possible values: - `01`—guest checkout - `02`—the account was created at the moment of making a payment - `03`—fewer than 30 days - `04`—between 30 and 60 days - `05`—more than 60 days - `auth_data`, string—additional login information in free text, can contain up to 255 characters - `auth_method`, string, `^0[1-4]$`—indicates how the customer was authenticated during their most recent login to the web service \(for standard card payments\). Can have one of the possible values: - `01`—no authentication - `02`—logging in with authentication data kept on file by the merchant - `03`—logging in with the federated identity credentials \(for example, Google Account or Facebook ID\) - `04`—logging in with the use of FIDO authenticator \(Fast Identity Online\) - `extended_auth_method`, string, `^(0[1-4]|0[1-4][1-6])$`—indicates how the customer was authenticated during their most recent login to the web service \(for payments using alternative payment methods\). Can have one of the possible values: - `021`—authentication using an account password - `022`—authentication using a reusable code - `023`—authentication using a one-time verification code \(One Time PIN, OTP\) received in a short message \(SMS\) - `024`—authentication using a one-time verification code \(One Time PIN, OTP\) received in an email - `025`—authentication using an URL received in an email - `026`—authentication using an URL received in a short message \(SMS\) - `031`—Silent Network Authentication - `032`—authentication using federated identity credentials via phone number - `041`—authentication using an electronic key \(passkey\) - `auth_time`, string, `^\\d{2}-\\d{2}-\\d{4}\\d{2}:\\d{2}$`—date and time of the customer's most recent account login in the `DD-MM-YYYYhh:mm` format - `change_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—date of the most recent change to the account, except for the password change or password reset, in the `DD-MM-YYYY` format - `change_indicator`, string, `^0[1-4]$`—number of days since the most recent change to the account, except for the password change or password reset. Possible values: - `01`—the account was updated on the day when the payment was made - `02`—fewer than 30 days - `03`—between 30 and 60 days - `04`—more than 60 days - `date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—the account creation date in the `DD-MM-YYYY` format - `device_purchase_history`, array of objects—array of objects containing information about previous purchases from the customer's device: - `number_of_purchases`, number—number of purchases made in the last 12 months - `number_of_paid_purchases`, number—number of paid purchases made in the last 12 months - `number_of_disputed_purchases`, number—number of purchases with disputes in the last 12 months - `total_amount`, number—total amount of purchases made in the last 12 months, in the smallest units of the currency specified in the `currency` parameter of this same object - `currency`, string, `^[A-Z]{3}$`—currency code for the specified amount in the ISO-4217 alpha-3 format - `payment_method`, string—indicator of the type of payment instrument used, can have one of the following values: - `01`—payment card of the payment system via which the payment is initiated - `02`—account with support of direct debiting of funds - `03`—mobile wallet - `04`—payment card of another payment system - `999`—other instrument - `first_purchase_at`, string, `^\\d{2}-\\d{2}-\\d{4}\\d{2}:\\d{2}$`—date and time of the customer's first purchase in the web service in the `DD-MM-YYYYhh:mm` format - `last_purchase_at`, string, `^\\d{2}-\\d{2}-\\d{4}\\d{2}:\\d{2}$`—date and time of the customer's last purchase in the web service in the `DD-MM-YYYYhh:mm` format - `loyalty_level`, string—indicator of the customer's level in the merchant's web service loyalty program, converted to one of the following values: - `01`—high - `02`—medium - `03`—low - `pass_change_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—date of the most recent password change or reset in the `DD-MM-YYYY` format - `pass_change_indicator`, string, `^0[1-5]$`—number of days since the most recent password change or reset. Possible values: - `01`—password was not changed or reset - `02`—password was changed or reset on the day when the payment was made - `03`—fewer than 30 days - `04`—between 30 and 60 days - `05`—more than 60 days - `payment_age`, string, `^\\d{2}-\\d{2}-\\d{4}$`—card record creation date in the `DD-MM-YYYY` format - `payment_age_indicator`, string, `^0[1-5]$`—number of days since the payment card details were saved to a customer's account. Possible values: - `01`—guest checkout - `02`—card details were saved on the day when the payment was made - `03`—fewer than 30 days - `04`—between 30 and 60 days - `05`—more than 60 days - `provision_attempts`, integer—number of attempts to save new card details to a customer's account in the last 24 hours, 3 characters maximum - `purchase_history`, array of objects—array of objects containing information about the customer's previous purchases: - `number_of_purchases`, number—number of purchases made in the last 12 months - `number_of_paid_purchases`, number—number of paid purchases in the last 12 months - `number_of_disputed_purchases`, number—number of purchases with chargebacks in the last 12 months - `total_amount`, number—total amount of purchases made in the last 12 months, in the smallest units of currency specified in the `currency` parameter the same object - `currency`, string, `^[A-Z]{3}$`—currency code for the specified amount in the ISO-4217 alpha-3 format - `payment_method`, string—indicator of the type of payment instrument used, can have one of the following values: - `01`—payment card of the payment system via which the payment is initiated - `02`—account with support of direct debiting of funds - `03`—mobile wallet - `04`—payment card of another payment system - `999`—other instrument - `first_purchase_at`, string, `^\\d{2}-\\d{2}-\\d{4}\\d{2}:\\d{2}$`—date and time of the customer's first purchase in the web service in the `DD-MM-YYYYhh:mm` format - `last_purchase_at`, string, `^\\d{2}-\\d{2}-\\d{4}\\d{2}:\\d{2}$`—date and time of the customer's last purchase in the web service in the `DD-MM-YYYYhh:mm` format - `purchase_number`,—number of purchases made via the customer's account in the last 6 months, 4 characters maximum - `suspicious_activity`, string, `^0[1-2]$`— indicates the presence of suspicious activity. Possible values: - `01`—no suspicious activity detected - `02`—suspicious activity detected ``` {#codeblock_qsc_jnt_wkc .language-json} { "customer":{ "address_match":"Y", "home_phone":"442055526608", "work_phone":"442055537709", "account":{ "additional":"gamer12345", "age_indicator":"01", "date":"01-10-2022", "change_indicator":"01", "change_date":"01-10-2022", "pass_change_indicator":"01", "pass_change_date":"01-10-2022", "purchase_number":12, "provision_attempts":16, "activity_day":22, "activity_year":222, "payment_age_indicator":"01", "payment_age":"01-10-2022", "suspicious_activity":"01", "auth_method":"01", "auth_time":"01-10-202213:12", "auth_data":"login_0102" } } } ``` ``` {#codeblock_rsc_jnt_wkc} eyAKICAiY3VzdG9tZXIiOnsgCiAgICAiYWRkcmVzc19tYXRjaCI6IlkiLAogICAgImhvbWVfcGhvbmUiOiI0NDIwNTU1MjY2MDgiLAogICAgIndvcmtfcGhvbmUiOiI0NDIwNTU1Mzc3MDkiLAogICAgImFjY291bnQiOnsgCiAgICAgICJhZGRpdGlvbmFsIjoiZ2FtZXIxMjM0NSIsCiAgICAgICJhZ2VfaW5kaWNhdG9yIjoiMDEiLAogICAgICAiZGF0ZSI6IjAxLTEwLTIwMjIiLAogICAgICAiY2hhbmdlX2luZGljYXRvciI6IjAxIiwKICAgICAgImNoYW5nZV9kYXRlIjoiMDEtMTAtMjAyMiIsCiAgICAgICJwYXNzX2NoYW5nZV9pbmRpY2F0b3IiOiIwMSIsCiAgICAgICJwYXNzX2NoYW5nZV9kYXRlIjoiMDEtMTAtMjAyMiIsCiAgICAgICJwdXJjaGFzZV9udW1iZXIiOjEyLAogICAgICAicHJvdmlzaW9uX2F0dGVtcHRzIjoxNiwKICAgICAgImFjdGl2aXR5X2RheSI6MjIsCiAgICAgICJhY3Rpdml0eV95ZWFyIjoyMjIyLAogICAgICAicGF5bWVudF9hZ2VfaW5kaWNhdG9yIjoiMDEiLAogICAgICAicGF5bWVudF9hZ2UiOiIwMS0xMC0yMDIyIiwKICAgICAgInN1c3BpY2lvdXNfYWN0aXZpdHkiOiIwMSIsCiAgICAgICJhdXRoX21ldGhvZCI6IjAxIiwKICAgICAgImF1dGhfdGltZSI6IjAxLTEwLTIwMjIxMzoxMiIsCiAgICAgICJhdXRoX2RhdGEiOiJsb2dpbl8wMTAyIgogICAgfQogIH0KfQ===== ``` | |`customer_account_number` string, optional |The identifier assigned to the customer's account by the payment system. May be required when using specific payment methods\(e.g., [Neteller](pm_neteller.md) and [OVO Wallet](pm_ovo.md)\). Depending on the particular method, may consist of an e-wallet identifier, an email address, a phone number, or a different kind of identifier. Example: `example@mail.com` | |`customer_birthplace` string, optional |The name of the customer's birthplace\(e.g., town, city, or other settlement type\). The length of the string cannot be more than 255 characters.Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `London` | |`customer_city` string, optional |The name of the place of residence \(e.g., town, city, or other settlement type\) in the customer's address. Generally, the length of the string cannot be more than 255 characters, but it may be further restricted depending on the specific method.Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `London` | |`customer_country` string, optional |The country code in the customer's address. Specified in ISO 3166-1 alpha-2 format. Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). In those cases when the payment form includes fields for the customer's phone number \(as a rule, this happens during such auxiliary procedures as collecting customer data or submitting additional payment information\), the value of the `customer_country` parameter can be used to determine the customer's country and apply the corresponding phone number mask \([details](en_faq_payment_processing.md#en_faq_payment_processing__section_d1k_12x_2lc)\). Pattern: `^[A-Z]{2}$`. Example: `GB` | |`customer_day_of_birth` string, optional |The date of birth of the customer. Consists of a string specified in `DD-MM-YYYY` format.Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Pattern: `^\\d{2}-\\d{2}-\\d{4}$`. Example: `12-12-1990` | |`customer_email` string, optional |The email address of the customer. The length of the string cannot be more than 255 characters. The string consists of a local-part and a domain name, separated by the "@" symbol. Required for purchases made using a payment card if the `customer_phone` parameter is not specified and the customer is not provided an opportunity to specify their phone number themselves \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `helen@example.com` | |`customer_first_name` string, optional |The first name of the customer. Generally, the length of the string cannot be more than 255 characters, but it may be further restricted depending on the specific method.Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `Jane` | |`customer_id` string, required |The identifier assigned to the customer within the scope of the project\(specified in `project_id`\). Each web service account should be linked to only one identifier and vice versa. This requirement is intended to address various risks and fraudulent operations. Example: `customer_112` | |`customer_identification_level` string, optional |An indicator of the level of trust assigned to the customer. It can be used by Ecommpay for additional payment risk assessment, as it factors in the level of trust assigned to the customer by the merchant. The permitted values and their interpretation should be agreed upon in advance with the Ecommpay specialists \(by referring to the account manager and through subsequent consultation with the risk assessment and fraud prevention specialists\). This indicator should be determined by the merchant, for example, based on the results of the customer authentication and information available about the customer, and specified as one of the agreed upon values with a maximum length of 255 characters. Example: `low` | |`customer_last_name` string, optional |The last name of the customer. Generally, the length of the string cannot be more than 255 characters, but it may be further restricted depending on the specific method.Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `Smith` | |`customer_middle_name` string, optional |The middle, second, or patronymic name of the customer. The length of the string cannot be more than 255 characters.Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `Mary` | |`customer_mpi_result` string, optional |Information about the customer's most recent authentication via the 3‑D Secure protocol. Consists of a string obtained by encoding a JSON object using the Base64 encoding scheme.The JSON object can include various combinations of elements from the list of supported data. When passed for card purchases, data contained in this parameter may serve to improve the probability of a successful 3‑D Secure authentication without any further input from the customer \(i.e., authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\). - `mpi_result`, object—object that contains information about the previous authentication attempt of the customer: - `acs_operation_id`, string, `^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$`—the identifier that the issuer assigned to the previous operation of the customer and returned in the `acs_operation_id` parameter of the callback with payment processing result. Can contain up to 36 characters. - `authentication_flow`, string, `^0[1-2]$`—the flow used by the issuer to authenticate the cardholder when processing the previous operation. It is a value of the `authentication_flow` parameter returned in the callback with payment processing result. Possible values: - `01`—frictionless flow - `02`—challenge flow - `authentication_timestamp`, string, `^\\d{12}$`—date and time of the previous successful customer authentication as returned in the `mpi_timestamp` parameter of the callback with payment processing result. ``` {#codeblock_a3w_xnt_wkc .language-json} { "customer":{ "mpi_result":{ "acs_operation_id":"00000000-0005-5a5a-8000-016d3ea31d54", "authentication_flow":"01", "authentication_timestamp":"202210111050" } } } ``` ``` {#codeblock_b3w_xnt_wkc} eyAKICAiY3VzdG9tZXIiOnsgCiAgICAibXBpX3Jlc3VsdCI6eyAKICAgICAgImFjc19vcGVyYXRpb25faWQiOiIwMDAwMDAwMC0wMDA1LTVhNWEtODAwMC0wMTZkM2VhMzFkNTQiLAogICAgICAiYXV0aGVudGljYXRpb25fZmxvdyI6IjAxIiwKICAgICAgImF1dGhlbnRpY2F0aW9uX3RpbWVzdGFtcCI6IjIwMjIxMDEwMTA1MCIKICAgIH0KICB9Cn0=== ``` | |`customer_phone` string, optional |The phone number of the customer. Note the following special aspects of its use: - As a general rule, must be provided in full, with the country code, and contain between 4 and 24 digits. Only digits can be used, no prefixes and no separators \(spaces, punctuation marks, or other symbols\) are allowed. - In cases when card networks or other payment providers impose additional format requirements \(for example, that the country code be separated from the national number\), the payment platform can automatically convert the data to meet them. However, in some cases \(for certain payment methods\), additional requirements may also apply to the number passed in this parameter. - For standard card payments, this parameter is required if the customer's email is not provided \(in the `customer_email` parameter\) and the customer is not given the option to enter this information in the payment form \([details](en_PP_Gathering_customer_data.md)\). - In cases when the payment form includes the fields for entering the customer's phone number \(for example, if the customer needs to be authenticated in order to use certain payment methods, or such auxiliary procedures as collecting customer data or submitting additional payment information are used\), the value of the `customer_phone` parameter is used as the primary source for determining the customer's country and applying the corresponding phone number mask \([details](en_faq_payment_processing.md#en_faq_payment_processing__section_d1k_12x_2lc)\). It can also be used for prefilling the fields in the payment form \(if it is configured for the project\). Pattern: `^[0-9]{4,24}$`. Example: `443031237300` | |`customer_shipping` string, optional |Information about the delivery of a product or a service rendered to the customer.May be relevant when working with certain payment methods. Consists of a string obtained by encoding a JSON object using the Base64 encoding scheme. This object may contain the `shipping` object, relevant for working with card purchases and other methods \(if specified in their documentation\), or the `shipping_extended` array, relevant for working with the [Klarna](pm_klarna.md) method. The object or array can include various combinations of elements from the list of supported data. When passed for card purchases, data contained in this parameter may serve to improve the probability of a successful 3‑D Secure authentication without any further input from the customer \(i.e., authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\). - `shipping`, object—object with shipping details, which may be relevant for card purchases and other methods: - `address`, string—shipping address, can contain up to 150 characters. - `address_usage`, string, `^\\d{2}-\\d{2}-\\d{4}$`—date when the specified shipping address was used for the first time, in the `DD-MM-YYYY` format. - `address_usage_indicator`, string, `^0[1-4]$`—number of days since the specified shipping address was used for the first time. Possible value: - `01`—first-time use - `02`—fewer than 30 days - `03`—between 30 and 60 days - `04`—more than 60 days - `city`, string—shipping city, can contain up to 50 characters. - `country`, string, `^[A-Z]{2}$`—shipping country code in the ISO 3166-1 alpha-2 format. - `delivery_email`, string—the email to deliver purchased digital content to if the customer chooses email delivery. Can contain up to 255 characters. - `delivery_time`, string, `^0[1-4]$`—delivery time. Possible values: - `01`—digital same day delivery - `02`—same day delivery - `03`—next day delivery - `04`—delivery more than one day after the purchase was made - `name_indicator`, string, `^0[1-2]$`—indicates whether the customer's name matches the recipient's name. Possible values: - `01`—names match - `02`—names do not match - `postal`, string—shipping postal code, can contain up to 16 characters. - `region`, string—the name of the region \(state, province, or other administrative subdivision type\) of the shipping address. Can contain up to 255 characters. - `region_code`, string, `^[0-9A-Z]{1,3}$`—state, province, or region code in the ISO 3166-2 format, for example, `DOR` for Dorset. If you specify this parameter, you also need to specify and populate the `country` parameter in the `shipping` object. - `type`, string, `^0[1-7]$`—delivery option selected by the customer. Possible values: - `01`—delivery to the cardholder's billing address - `02`—delivery to a different verified address - `03`—delivery to the address that is not verified and does not match the billing address - `04`—store delivery - `05`—digital delivery - `06`—no delivery needed \(for example, event ticket purchase\) - `07`—other - `shipping_extended`, array of objects—array of objects containing shipping information, which may be relevant for the [Klarna](pm_klarna.md) method and may include the following information: - `address`, string—basic information about the shipping address in the form of a street name and a house number - `address2`, string—additional information about the shipping address in the form of the name of the district, information additional to the house number or other information - `carrier`, string—name of the shipping organisation - `city`, string—name of the city \(or other locality\) in the shipping address - `country`, string, `^[A-Z]{2}$`—country code in the shipping address in the ISO 3166-1 alpha-2 format - `email`, string—email address - `first_name`, string—first name of the recipient - `last_name`, string—last name of the recipient - `phone`, string, `^[0-9]{4,24}$`—phone number of the recipient, as a sequence of digits without separators - `postal`, string—postal code in the shipping address - `region_code`, string, `^[0-9A-Z]{1,3}$`—internal area code in the shipping address, representing the second part of the international area code \(in the ISO 3166-2 format\), without the two-letter country code and separating hyphen - `shipping_reference`, string—shipping identifier within the web service or delivery service, required when specifying information about different deliveries in a single request - `type`, string—shipping type indicator, can have one of the following values: - `011`—door delivery to the customer's billing address - `012`—delivery to the building at the customer's billing address - `013`—delivery to a PO Box at the customer's billing address - `021`—door delivery to another confirmed address - `022`—delivery to the building at another confirmed address - `023`—delivery to a PO Box at another confirmed address - `031`—door delivery to an address that does not match the billing address and is not confirmed - `032`—delivery to the building to an address that does not match the billing address and is not confirmed - `033`—delivery to a mailbox at an address that does not match the billing address and is not confirmed - `041`—pickup from a store - `042`—pickup from a warehouse - `043`—pickup from a parcel locker - `044`—pickup from an order pickup point - `051`—delivery to an email address - `052`—delivery with file download from a web service - `059`—other electronic delivery method - `071`—other physical delivery method - `type_attributes`, array of strings—array of strings with a list of additional shipping parameter indicators, can have the following values: - `01`—indicator of the requirement of delivery confirmation by the customer \(with receipt of their signature\) - `02`—indicator of the requirement of recipient identity verification \(with verification of information by a delivery specialist\) - `03`—indicator of the requirement of contactless delivery - `04`—indicator of the requirement of door-to-door delivery - `05`—indicator of the requirement of delivery to the building - `06`—indicator of the requirement of delivery to neighbors - `07`—indicator of the requirement of express delivery - `08`—indicator of the requirement of tracked delivery - `09`—indicator of the requirement of using untracked delivery ``` {#codeblock_zlx_k4t_wkc .language-json} { "customer":{ "shipping":{ "type":"01", "delivery_time":"01", "delivery_email":"test@gmail.com", "address_usage_indicator":"01", "address_usage":"01-10-2022", "city":"London", "country":"GB", "address":"Blackheath Ave", "postal":"SE10 8XJ", "region":"Vilnius County", "region_code":"LND", "name_indicator":"01" } } } ``` ``` {#codeblock_amx_k4t_wkc} eyAKICAiY3VzdG9tZXIiOnsgCiAgICAic2hpcHBpbmciOnsgCiAgICAgICJ0eXBlIjoiMDEiLAogICAgICAiZGVsaXZlcnlfdGltZSI6IjAxIiwKICAgICAgImRlbGl2ZXJ5X2VtYWlsIjoidGVzdEBnbWFpbC5jb20iLAogICAgICAiYWRkcmVzc191c2FnZV9pbmRpY2F0b3IiOiIwMSIsCiAgICAgICJhZGRyZXNzX3VzYWdlIjoiMDEtMTAtMjAyMiIsCiAgICAgICJjaXR5IjoiTG9uZG9uIiwKICAgICAgImNvdW50cnkiOiJHQiIsCiAgICAgICJhZGRyZXNzIjoiQmxhY2toZWF0aCBBdmUiLAogICAgICAicG9zdGFsIjoiU0UxMCA4WEoiLAogICAgICAicmVnaW9uX2NvZGUiOiJMTkQiLAogICAgICAibmFtZV9pbmRpY2F0b3IiOiIwMSIKICAgIH0KICB9Cn0== ``` | |`customer_ssn` integer, optional |The last four digits of the social security number of a US citizen. Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `1984` | |`customer_state` string, optional |The name of the region\(state, province, or other administrative subdivision type\) of the customer's address. Generally, the length of the string cannot be more than 255 characters, but it may be further restricted depending on the specific method.Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `Greater London` | |`customer_street` string, optional |The name of the street in the customer's address. Generally, the length of the string cannot be more than 255 characters, but it may be further restricted depending on the specific method.Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `Main` | |`customer_zip` string, optional |The postal or zip code in the customer's address. The length of the string cannot be more than 10 characters.Passing this information, along with other information about the customer, may eliminate the need to provide additional information about the payment and simplify user scenarios \(see [this article](en_PP_Gathering_customer_data.md)\). Example: `75001` | |`debt_account` string, optional |The number of the account designated to receive funds as part of debt settlement purchases. This parameter is required for debt settlement purchases \(see [this article](en_PP_debt_repayments.md)\).The length of the string cannot be more than ten characters. Only Latin-script letters and digits are allowed. Example: `an9876170i` | |`force_acs_new_window` integer \(boolean\*\), optional |Indicator specifying whether a third-party web service that the customer is redirected to is opened in a new tab or not \(see [this article](en_PP_pm_redirect_mode.md)\). May be required for specific payment methods and can have one of the following values: - `0`—redirected using the mode specified as the default mode for the payment method, - `1`—redirected in a new tab, ignoring the mode specified as the default mode for the payment method. If the `merchant.js` library is used \([details](en_pp_interaction_organisation.md)\), this parameter can be specified as a boolean value and set to either `false` or `true`. Example: `1` | |`force_payment_method` string, optional |The code of the payment method that should be preselected for the payment \(see [this article](en_PP__PreselectingPS.md)\). Can have values specified in the [payment method code list](en_pm_codes.md). Example: `paypal-wallet` | |`force_payment_group` string, optional |The code of the payment method group that should be preselected for the payment \(see [this article](en_PP__PreselectingPS.md)\). If this parameter is passed, only those payment methods that are part of the corresponding method group and are supported within the project will be available to the customer. However, if this parameter is passed together with the `force_payment_method` parameter, only the payment method linked to the code specified in that parameter will be preselected in the payment form, while the payment method group code will be ignored. Currently, this parameter can be used to preselect the Open Banking method group when you work with the 4th generation Payment Page—to do so, specify `openbanking` as the value. Example: `openbanking` | |`force_payment_method_subtype` string, optional |The code of the payment card brand that should be preselected for the payment \(see [this aticle](en_PP__PreselectingPS.md)\). Can have values specified in the [payment card code list](en_card_codes.md). Example: `mastercard` | |`hide` string, optional |A single code or a list of codes for payment methods that should be excluded from the payment form for the payment \([details](en_pp_methods_availability.md)\). If a list of codes is specified, they should be separated by commas. Can have values specified in the [payment method code list](en_pm_codes.md). Example: `card, cup-union` | |`identify_doc_issue_country` string, optional |The code of the country where the document serving as a proof of the customer's identity was issued. Specified in the ISO 3166-1 alpha-2 format. Example: `GB` | |`identify_doc_number` string, optional |The identifier of the document serving as a proof of identity for the customer. May be required for specific payment methods and can consist of a personal identity number, a taxpayer number\(e.g., [PIX](pm_pix.md), [Klarna](pm_klarna.md)\), or other similar identifiers. Example: `6543234567` | |`interface_type` string, optional |An identifier for the interface of the payment platform. Using this parameter requires case-by-case coordination with Ecommpay. Example: `{"id":7}` | |`language_code` string, optional |The code of the language in which the payment form should be displayed \(see [this article](en_PP_WigetLanguages.md#en_PP_WigetLanguages__section_ivb_h3b_sqb)\)and the notifications should be generated \(see [this article](en_PP_receipt_data.md)\). Can consist of a two-letter ISO 639-1 alpha-2 code \(see [Language codes](en_language_codes.md)\) or a code in a different format when this has been arranged prior. Pattern: `/^([a-z]{2}|zh\-hant)$/i`. Example: `de` | |`merchant_callback_url` string, optional |URL for handling request callbacks. This parameter should be passed when callbacks for a request need to be sent to an address that is different from that specified by default \(for information about callbacks and how to use them, see [this article](en_platform_callbacks.md)\). Example: `https://cosmoshop.earth/specialorder` | |`merchant_data` string, optional |Additional information that needs to be tracked by the web service. The data that is passed in this parameter can vary. However, what data set is passed in this parameter should be communicated to the Ecommpay specialists and configured beforehand to ensure the data is processed and displayed correctly in callbacks and payment information tabs \(see [this article](en_pp_additional_data.md)\). In specific cases can contain a JSON object; then, the `"` character \(quotation mark, U+0022\) needs to be preceded by the `\` escape character \(reverse solidus, U+005C\) in order to be sent via a POST request. If the JSON object is passed via a GET request, escape characters are not required. ``` {#codeblock_zdw_5j1_xkc .language-json} "merchant_data": "{"items":[{"sku":"GM12-CC", "description":"10 Copper Coins","count":1}, {"sku":"GM12-GC","description":"Golden Coin", "count":2}],"total_count":3,"user_id":"122"}" ``` ``` {#codeblock_n44_wk1_xkc .language-json} "merchant_data": "{\"items\":[{\"sku\":\"GM12-CC\", \"description\":\"10 Copper Coins\",\"count\":1}, {\"sku\":\"GM12-GC\",\"description\":\"Golden Coin\", \"count\":2}],\"total_count\":3,\"user_id\":\"122\"}" ``` | |`merchant_descriptor` string, optional |Information about the merchant provided to other parties involved in card payment processing and subsequently to customers. Can be used for processing purchases and performing payment instrument verification. The length of the string is limited to 22 characters for cards of the Mastercard card network and 25 characters for cards of the Visa card network. For more information on working with this parameter, see [this article](en_pp_descriptor.md). Example: `Cosmotour* to the Moon` | |`merchant_domain` string, optional |The domain name of the web service where the payment form should be opened. This parameter should be passed when Payment Page is invoked in the form of embedded Apple Pay and Google Pay payment buttons \(see [this article](en_pp_embedded_payment_buttons.md)\). Example: `merchant.example.com` | |`merchant_fail_enabled` integer, optional |Indicator that specifies the availability options for the final redirection of the customer to the web service when a purchase is declined. Can have one of the following values: - `0`—redirectionto the web service is not available, - `1`—redirectionto the web service is available if Payment Page is opened in a separate browser tab\(in this case, how the web service page is opened is determined by the corresponding parameter from the `mode` group\) and not as an iframe object or in a modal window, - `2`—redirectionto the web service is available by default, using the mode specified in the `mode` parameter group. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `2` | |`merchant_fail_redirect_mode` string, optional |Indicator that specifies the mode for the final redirection of the customer to the web service when a purchase is declined. Can have one of the following values: - `iframe`—opens the pagein an iframe object \(this value is ignored if the payment form is opened in a new tab and the customer is redirected in that new tab\), - `parent_page`—opens the pagein the currently active tab, - `blank_page`—opens the pagein a new tab. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `blank_page` | |`merchant_fail_url` string, optional |URL for final redirection to the web service by customer decision when a purchase is declined. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `https://cosmoshop.jupiter.example/pages/failed` | |`merchant_return_enabled` integer, optional |Indicator that specifies the availability options for the preliminary redirection of the customer to the web service from the payment form. Can have one of the following values: - `0`—redirectionto the web service is not available, - `1`—redirectionto the web service is available if Payment Page is opened in a separate browser tab\(in this case, how the web service page is opened is determined by the corresponding parameter from the `mode` group\) and not as an iframe object or in a modal window, - `2`—redirectionto the web service is available by default, using the mode specified in the `mode` parameter group. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `0` | |`merchant_return_redirect_mode` string, optional |Indicator that specifies the mode for the preliminary redirection of the customer to the web service from the payment form. Can have one of the following values: - `iframe`—opens the pagein an iframe object \(this value is ignored if the payment form is opened in a new tab and the customer is redirected in that new tab\), - `parent_page`—opens the pagein the currently active tab, - `blank_page`—opens the pagein a new tab. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `iframe` | |`merchant_return_url` string, optional |URL for preliminary redirection to the web service from the payment form. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `https://cosmoshop.jupiter.example/return` | |`merchant_success_enabled` integer, optional |Indicator that specifies the availability options for the final redirection of the customer to the web service when the purchase is completed. Can have one of the following values: - `0`—redirectionto the web service is not available, - `1`—redirectionto the web service is available if Payment Page is opened in a separate browser tab\(in this case, how the web service page is opened is determined by the corresponding parameter from the `mode` group\) and not as an iframe object or in a modal window, - `2`—redirectionto the web service is available by default, using the mode specified in the `mode` parameter group. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `1` | |`merchant_success_redirect_mode` string, optional |Indicator that specifies the mode for the final redirection of the customer to the web service when the purchase is completed. Can have one of the following values: - `iframe`—opens the pagein an iframe object \(this value is ignored if the payment form is opened in a new tab and the customer is redirected in that new tab\), - `parent_page`—opens the pagein the currently active tab, - `blank_page`—opens the pagein a new tab. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `parent_page` | |`merchant_success_url` string, optional |URL for final redirection to the web service by customer decision when the purchase is completed. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `https://cosmoshop.jupiter.example/pages/success` | |`mode` string, optional |Indicator that specifies the Payment Page operation mode. Can have one of the following values: - `purchase`—for making a purchasein Purchase mode \(used by default\), - `payout`—for making a payoutin Payout mode, - `card_verify`—for verifying the validity of a payment instrumentin Card Verify mode, - `card_tokenize`—for creating a payment details tokenin Card Tokenize mode. Example: `card_verify` | |`moto_type` integer, optional |Type of order for carrying outa Mail Order/Telephone Order purchase\(involving the owner of the payment card providing its details over phone, mail, fax, or email\): - `1`—Mail Order, - `2`—Telephone Order. Example: `2` | |`operation_type` string, optional |Indicator that specifieswhether a purchaseis processed in one or two steps. Should be specified in cases where the intended payment type is different from the one specified by default \(with regard to the number of steps\). Can have one of the following values: - `sale`—for one-step purchases \(with the funds transferred to the merchant immediately;[details](en_pp_purchase.md)\), - `auth`—for two-step purchases \(with the funds transferred to the merchant after first being in an authorisation hold;[details](en_pp_purchase_auth.md)\). Example: `auth` | |`payment_amount` integer, required\* |The amount of the paymentin the smallest currency unit. Specified in the smallest currency unit without a decimal separator.Required for all Payment Page modes except Card Tokenize. Example: `1815`\(represents an amount of 18.15 currency units when referring to a currency with two decimals\) | |`payment_cryptocurrency_type` string, optional |Indicator that specifies the type of the cryptocurrency. Required for payments involving cryptocurrencies via the Mastercard MoneySend and Visa Direct services. Can have one of the following values: - `cbdc`—a central bank digital currency or tokenized deposit issued by a central bank, reserve bank, or other national monetary authority. - `stablecoins_fiat_backed`—a fiat-backed digital asset with reserves held by a licensed financial institution. - `native_tokens`—a digital currency native to a specific blockchain, required for transactions within its network, including fee payments. - `other`—a non-fiat digital asset that does not fit other types or cannot be classified at the time of transaction initiation. Example: `cbdc` | |`payment_currency` string, required\* |Three-letter code of the payment currency. Specified in the ISO-4217 alpha-3 format, according to the [currency codes reference](en_currency_codes.md).Required for all Payment Page modes except Card Tokenize. Pattern: `^[A-Z]{3}$`. Example: `EUR` | |`payment_description` string, optional |A short description for the payment, intended to be displayed to the customer, as well as being used by the web service for tracking purposes. The length of the string cannot be more than 255 characters. Can be displayed to the customer on the information page, or via system notifications and the Dashboard interface. Example: `Thai massage session` | |`payment_extra_param` string, optional |Additional relevant information pertaining to the payment. May be required for specific payment methods and in other individual cases.Generally, where and how this parameter is used, as well as the format of any data contained therein should be decided uponduring the integration of the web service, or when implementing additional payment methods or capabilities. | |`payment_id` string, required\* |The payment identifier. Must be assigned by the web service. Should consist of a string no longer than 255 characters, be case-insensitive, and correspond one-to-one with the relevant payment within that project.Required for all Payment Page modes except Card Tokenize. Example: `payment_443` | |`payment_merchant_risk` string, optional |Additional information about a purchase made for goods or services by a customer and about which 3‑D Secure authentication method is preferred by the merchant. Consists of a string obtained by encoding a JSON object using the Base64 encoding scheme.The JSON object can include various combinations of elements from the list of supported data. When passed for card payments, data contained in this parameter may serve to improve the probability of a successful 3‑D Secure authentication without any further input from the customer \(i.e., authentication via the frictionless flow instead of the challenge flow; [details](en_pp_3ds.md)\). - `challenge_indicator`, string, `^0[1-9]$`—indicates whether the challenge flow is preferred. Possible values: - `01`—no preferences - `02`—not using the challenge flow is preferred - `03`—using the challenge flow is preferred - `04`—using the challenge flow is required - `05`—do not use the challenge flow, the merchant has performed the risk analysis - `06`—do not use the challenge flow, use the Data Only flow - `07`—do not use the challenge flow, Strong Customer Authentication has been applied otherwise - `08`—do not use the challenge flow, the merchant is included in cardholder's trusted beneficiaries list - `09`—using the challenge flow is required, prompt the cardholder to add the merchant to the trusted beneficiaries list - `gift_card`, object—object with information about a purchase made with a prepaid or gift card: - `amount`, integer—the amount of the purchase made with a prepaid or gift card in the smallest units of currency - `count`, integer—total number of prepaid or gift cards used for making a purchase - `currency`, string—the currency of the purchase made with a prepaid or gift card in the ISO 4217 alpha-3 format - `preorder_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—the date when the preordered merchandise or service will be available in the `DD-MM-YYYY` format - `preorder_purchase`, string, `^0[1-2]$`—indicates whether the purchase is a preorder. Possible values: - `01`—not a preorder - `02`—a preorder - `reorder`, string, `^0[1-2]$`—indicates whether the customer is buying the merchandise or the service for the first time or it is a repeat purchase. Possible values: - `01`—first-time purchase - `02`—repeat purchase ``` {#codeblock_usb_zpt_wkc .language-json} { "payment":{ "reorder":"01", "preorder_purchase":"01", "preorder_date":"11-10-2022", "challenge_indicator":"01", "gift_card":{ "amount":12345, "currency":"USD", "count":1 } } } ``` ``` {#codeblock_vsb_zpt_wkc} eyAKICAicGF5bWVudCI6eyAKICAgICJyZW9yZGVyIjoiMDEiLAogICAgInByZW9yZGVyX3B1cmNoYXNlIjoiMDEiLAogICAgInByZW9yZGVyX2RhdGUiOiIxMS0xMC0yMDIyIiwKICAgICJjaGFsbGVuZ2VfaW5kaWNhdG9yIjoiMDEiLAogICAgImdpZnRfY2FyZCI6eyAKICAgICAgImFtb3VudCI6MTIzNDUsCiAgICAgICJjdXJyZW5jeSI6IlVTRCIsCiAgICAgICJjb3VudCI6MQogICAgfQogIH0KfQ==== ``` | |`payment_methods_options` string, optional |Additional information relevant for specific payment methods and third-party services. Can be used to manage individual methods, including Open Banking methods, in order to send additional information about the customer and the payment, manage the page size of third-party web services that the customer is redirected to, and for other possible reasons, depending on the specific payment methods being used. Example: `{\"online_thailand_banks\": {\"split_banks\": true}}` | |`project_id` integer, required |Identifier of the projectintended to manage the interactions of the web service with the payment platform. This identifier is assigned by Ecommpayduring the integration \([details](en_glossary.md)\). Example: `57123` | |`purchase_data` string, optional |Information about line items in an order. Consists of a string obtained by encoding a JSON array using the Base64 encoding scheme. The JSON array must include the method indicator in the `payment_method` parameter set to the `klarna` value, as well as the `positions` array and can include various combinations of elements from the list of supported data. May be required for using specific payment methods such as Klarna. The `positions` array may contain the following information. *General information about each line item* \(applicable to any item and sufficient for items with the `discount`, `product`, `service`, and `other` types\) - `type`, string—indicator that specifies the type of a line item, that can have one of the following values: - `bus`—bus ride - `car`—car rental - `discount`—discount or promo code \(for any goods or services\) - `event`—attending an event \(for example a concert or exhibition\) - `ferry`—ferry crossing - `flight`—air travel - `hotel`—hotel accommodation - `insurance`—insurance - `marketplace`—product or service provided via a marketplace - `ondemand`—product or service provided as part of an on-demand subscription plan \(for example, watching a movie in an online cinema\) - `subscription`—product or service provided as part of a subscription plan with regular debiting \(for example, access to watching movies in an online cinema for a month\) - `train`—train ride - `voucher`—voucher or gift certificate - `product`—a product of a different category - `service`—a service of a different category - `other`—another type of service provided to the customer - `informational_line_item`, boolean—indicator that specifies that a line item is provided as an accompanying one and its cost should not be included in the total amount of the line items in the order being paid, can have one of the following values: `true`—for accompanying items the costs of which should not be included in the order amount, `false` \(by default\)—for main items the costs of which should be included in the order amount. For example, this parameter can be used when processing travel package orders, wherein the main item is assigned the `service` type, while the accompanying items \(hotel accommodation, air travel and car rental\) are assigned the `hotel`, `flight` and `car` types - `name`, string—name of the item - `amount`, integer—cost of a unit of goods or services per item, in smallest currency units, specified as a negative value for items with the `discount` type \(for example, `-1000`\) - `quantity`, number—number of goods or services per item - `amount_total`, integer—total cost of goods or services per item, in smallest currency units, specified as a negative value for items with the `discount` type \(for example, `-1000`\) - `tax_total`, integer—amount of tax or fee included in the item price, in smallest currency units, specified as a negative value for items with the `discount` type \(for example, `-1000`\) - `product_reference`, string—identifier of a product or service as defined by the web service - `product_url`, string—address of the web service page with the product or service card - `product_image`, string—image URL of the product or service - `item_reference`, string—item identifier within the list of all purchased items - `shipping_reference`, string—the shipping identifier for an item as defined by a web service or shipping service *Detailed information about transportation services* \(for items of the `bus`, `car`, `ferry`, `flight` and `train` types\) - `departure`, object—object that contains departure information: - `address`, string—basic information about the departure address in the form of a street name and a house number \(not applicable for the `flight` type\) - `address2`, string—additional information about the departure address in the form of the name of the district, information additional to the house number or other information \(not applicable for the `flight` type\) - `date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—departure date in the `DD-MM-YYYY` format - `city`, string—name of the city in the departure address - `country`, string, `^[A-Z]{2}$`—country code in the departure address in the ISO 3166-1 alpha-2 format - `location`, string—name of the departure location \(not applicable for the `flight` type\) - `postal`, string—postal code in the address of the departure location \(not applicable for the `flight` type\) - `region_code`, string, `^[0-9A-Z]{1,3}$`—the internal code of the region \(state, province, or other territorial area\) in the address of the departure location, is the second part of the international area code \(in the ISO 3166-2 format\), without the two-letter country code and separating hyphen \(not applicable for the `flight` type\) - `airport`, string—three-letter code assigned to the departure airport by the International Air Transport Association \(IATA\) - `arrival`, object—object that contains arrival information: - `address`, string—basic information about the arrival address in the form of a street name and a house number \(not applicable for the `flight` type\) - `address2`, string—additional information about the arrival address in the form of the name of the district, information additional to the house number or other information \(not applicable for the `flight` type\) - `city`, string—name of the city in the arrival address - `country`, string, `^[A-Z]{2}$`—country code in the arrival address in the ISO 3166-1 alpha-2 format \(not applicable for the `flight` type\) - `postal`, string—postal code in the address of the arrival location \(not applicable for the `flight` type\) - `region_code`, string, `^[0-9A-Z]{1,3}$`—the internal code of the region \(state, province, or other territorial area\) in the address of the arrival location, is the second part of the international area code \(in the ISO 3166-2 format\), without the two-letter country code and separating hyphen \(not applicable for the `flight` type\) - `airport`, string—three-letter code assigned to the arrival airport by the International Air Transport Association \(IATA\) - `bus_company`, string—name of the organisation providing bus transportation \(only applicable for the `bus` type\) - `car_rental_company`, string—name of the organisation providing the rental car - `ferry_line`, string—name of the organisation that operates the ferry service - `airline`, string—two-letter code assigned to an airline by the International Air Transport Association \(IATA\) - `train_company`, string—name of the organisation carrying out rail transportation - `affiliate`, string—name of the partner organisation providing the service - `booking_reference`, string—booking identifier \(code\) relevant for the flight - `passengers`, array of objects—array of objects containing passenger information: - `first_name`, string—first name of the passenger - `last_name`,string—last name of the passenger - `drivers`—array of objects containing driver information \(for items with the `car` type\): - `date_of_birth`—driver date of birth in the `DD-MM-YYYY` format - `first_name`—first name of the driver. Should contain between one and 99 characters - `last_name`—last name of the driver. Should contain between one and 99 characters - `class`, string—indicator that specifies the service class, can have one of the following values: - `COMPACT`—compact class - `ECONOMY`—economy class - `PREMIUM_ECONOMY`—premium economy class - `BUSINESS`—business class - `FIRST_CLASS`—first class - `insurances`, array of objects—array of objects containing insurance services information: - `company`, string—name of the insurance company - `insurance_type`, string—indicator of the insurance service type, can have one of the following values for the types `bus`, `ferry`, `flight` and `train`: - `BANKRUPTCY`—bankruptcy insurance for the service provider - `CANCELATION`—service cancellation insurance - `EMERGENCY`—emergency insurance - `MEDICAL`—medical insurance For the `car` type the supported values are the following: - `LIABILITY_SUPPLEMENT`—third-party liability insurance covering bodily injury and property damage - `LOSS_DAMAGE_WAIVER`—vehicle theft or total damage insurance - `PARTIAL_DAMAGE_WAIVER`—insurance from vehicle damage to a specific excess or deductible - `PERSONAL_ACCIDENT`—insurance from medical expenses and accidental death for the driver and passengers - `PERSONAL_EFFECTS`—insurance for personal belongings stolen or damaged inside the rental vehicle - `amount`, number—cost of the insurance service in the smallest units of currency specified in the `currency` parameter of the same object currency - `currency`, string, `^[A-Z]{3}$`—currency code for the cost of the insurance service in the ISO-4217 alpha-3 format - `price`, number—cost of a ticket or reservation in the smallest units of currency specified in the `currency` parameter of the same object - `currency`, string, `^[A-Z]{3}$`—currency code for the ticket or reservation price in the ISO-4217 alpha-3 format *Detailed accommodation information* \(for items of the `hotel` type\) - `hotel_name`, string—name of the accommodation \(for example, of a hotel or a hostel\) - `affiliate`, string—name of the partner organisation providing the service - `host`, object—object containing information about the rental property owner: - `type`, string—rental type indicator: - `HOSTEL`—booking a room or bed in a hostel - `HOTEL`—booking a room in a hotel - `OWNER`—renting the property directly from the owner - `RENTAL_AGENCY`—renting the property through an agency - `host_reference`, string—host identifier - `country`, string, `^[A-Z]{2}$`—country code in the host's address \(legal address for a legal entity or residential address for an individual\) in ISO 3166-1 alpha-2 format - `registration_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—registration date of the host in the `DD-MM-YYYY` format - `reservations`, number—number of reservations via the host over the past 12 months - `lodging_type`, string—indicator of the accommodation type, can have one of the following values: - `ROOM`—room - `CABANA`—cabana \(beach cabin or similar kind of shelter\) - `STANDARD`—standard room - `SUITE`—suite - `APARTMENT`—apartment - `HOUSE`—house - `VILLA`—villa - `PENTHOUSE`—penthouse - `address`, string—basic information about the accommodation address in the form of the street name and house number - `address2`, string—additional information about the accommodation address in the form of the district name, additional information to the house number, or other details - `city`, string—city name in the accommodation address - `country`, string, `^[A-Z]{2}$`—country code in the accommodation address in the ISO 3166-1 alpha-2 format - `postal`, string—postal code in the accommodation address - `region_code`, string, `^[0-9A-Z]{1,3}$`—internal area code \(state, province, or other territorial area\) in the accommodation address, representing the second part of the international area code \(in the ISO 3166-2 format\), without the two-letter country code and separating hyphen - `rooms`, number—number of accommodations being booked \(for example, rooms or suites\) - `start_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—service start date \(for example, check-in date\) in the `DD-MM-YYYY` format - `end_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—service end date \(for example, check-out date\) in the `DD-MM-YYYY` format - `guests`, array of objects—array of objects containing information about guests: - `first_name`, string—first name of the guest - `last_name`, string—last name of the guest - `insurances`, array of objects—array of objects containing information about insurance services: - `company`, string—name of the insurance company - `insurance_type`, string—indicator of the insurance service type, can have one of the following values: - `BANKRUPTCY`—bankruptcy insurance for the service provider - `CANCELATION`—service cancellation insurance - `EMERGENCY`—emergency insurance - `MEDICAL`—medical insurance - `amount`,—cost of the insurance service in the smallest units of currency specified in the `currency` parameter of this same object - `currency`, string, `^[A-Z]{3}$`—currency code for the cost of the insurance service in the ISO-4217 alpha-3 format - `price`, number—cost of the service in the smallest units of currency specified in the `currency` parameter of this same object - `currency`, string, `^[A-Z]{3}$`—currency code in which the cost of the service is indicated, in the ISO-4217 alpha-3 format *Detailed information about the voucher or gift certificate* \(for items of the `voucher` type\) - `company`, string—name of the organisation issuing the voucher or certificate - `affiliate`, string—name of the partner organisation issuing the voucher or certificate - `start_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—start date of the voucher or certificate in the `DD-MM-YYYY` format - `end_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—end date of the voucher or certificate in the `DD-MM-YYYY` format - `voucher_type`, string—indicator of the voucher or certificate type, can have one of the following values: - `DIGITAL_PRODUCT`—voucher for a digital product - `DISCOUNT`—voucher for a discount, specified as a percentage or a fixed numeric amount - `GIFT_CARD`—gift certificate with a fixed denomination - `PHYSICAL_PRODUCT`—voucher for a physical product - `SERVICES`—voucher for receiving a service *Detailed information about the insurance service* \(for items of the `insurance` type\) - `company`, string—name of the organisation providing the service - `insurance_type`, string—indicator of the insurance service type, can have one of the following values: - `BANKRUPTCY`—bankruptcy insurance for the service provider - `CANCELATION`—service cancellation insurance - `EMERGENCY`— emergency insurance - `MEDICAL`—medical insurance - `amount`, number—cost of the insurance service in the smallest units of currency specified in the `currency` parameter of the same object - `currency`, string, `^[A-Z]{3}$`—currency code for the cost of the insurance service in the ISO-4217 alpha-3 format Detailed information about the event \(for items of the `event` type\) - `event_type`, string—event type indicator that can have one of the following values: - `CONCERT`—concert - `CONFERENCE`—conference - `DIGITAL_EDUCATION`—online educational event - `EXPO`—exhibition - `FESTIVAL`—festival - `IN_PERSON_EDUCATION`—in-person educational event - `SPORT`—sporting event - `TOUR`—excursion or tour - `company`, string—name of the organisation providing the service - `affiliate`, string—name of the partner organisation providing the service - `venue_name`, string—name of the event venue \(for example, the name of a park or conference hall\) - `address`, string—basic information about the event venue's address in the form of a street name and a house number - `address2`, string—additional information about the event venue address in the form of the name of the district, information additional to the house number or other information - `city`, string—name of the city in the event venue's address - `country`, string, `^[A-Z]{2}$`—country code in the event venue's address in the ISO 3166-1 alpha-2 format - `postal`, string—postal code in the event venue address - `region_code`, string, `^[0-9A-Z]{1,3}$`—internal region code \(state, province, or other territorial area\) in the event venue address, representing the second part of the international area code \(in the ISO 3166-2 format\), without the two-letter country code and separating hyphen - `start_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—event start date in the `DD-MM-YYYY` format - `end_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—event end date in the `DD-MM-YYYY` format - `access_controlled`, boolean—indicator of the of digital access control to the service - `insurances`, array of objects—array of objects containing information about insurance services: - `company`, string—name of the insurance company - `insurance_type`, string—indicator of the type of insurance service, can have one of the following values: - `BANKRUPTCY`—bankruptcy insurance for the service provider - `CANCELATION`—service cancellation insurance - `EMERGENCY`—emergency insurance - `MEDICAL`—medical insurance - `amount`, number—cost of the insurance service in the smallest units of currency specified in the `currency` parameter of the same object - `currency`, string, `^[A-Z]{3}$`—currency code for the cost of the insurance service in the ISO-4217 alpha-3 format *Detailed information about a product or service provided as part of an on-demand subscription plan* \(for items of the `ondemand` type\) - `amount_min`, number—minimum allowable amount of a single debiting in the smallest units of currency specified in the `currency` parameter of the same object - `amount_max`, number—maximum allowable amount of a single debiting in the smallest units of currency specified in the `currency` parameter of the same object - `amount_average`, number—estimated average amount of a single debiting in the smallest units of currency specified in the `currency` parameter of the same object - `currency`, string, `^[A-Z]{3}$`—currency code for an individual debiting in the ISO-4217 alpha-3 format - `interval`, string—indicator that specifies debiting frequency, can have one of the following values: - `DAY`—day - `WEEK`—week - `MONTH`—month - `YEAR`—year - `frequency`, number—multiplier to increase debiting frequency *Detailed information about a product or service provided as part of a subscription plan with regular debiting* \(for items of the `subscription` type\) - `billing_plans`, array of objects—array of objects containing subscription information - `amount`, number—amount of an individual debiting in the smallest units of currency specified in the `currency` parameter of the same object - `currency`, string, `^[A-Z]{3}$`—currency code for an individual charge in the ISO-4217 alpha-3 format - `interval`, string—indicator that specifies the basic debiting period, can have one of the following values: - `DAY`—day - `WEEK`—week - `MONTH`—month - `YEAR`—year - `frequency`, number—multiplier to increase the basic debiting period - `start_date`, string, `^\\d{2}-\\d{2}-\\d{4}$`—debiting start date in the `DD-MM-YYYY` format, starting from the day after the payment processing date - `free_trial`, string—indicator of whether the trial period is active, can have one of the following values: - `ACTIVE`—with trial period - `INACTIVE`—no trial period - `subscription_reference`, string—identifier of the service or the service type within the web service, can be non-unique \(for example, `PREMIUM_MONTHLY`\) *Detailed information about a good or service on the marketplace* \(for items of the `marketplace` type\) - `seller`, object—object containing information about the seller on the marketplace: - `name`, string—name or title of the seller on the marketplace - `address`, string—basic information about the seller's address in the form of a street name and a house number - `address2`, string—additional information about the seller in the form of the name of the district, information additional to the house number or other information - `city`, string—name of the city where the seller is located - `country`, string, `^[A-Z]{2}$`—country code of the seller's location in the ISO 3166-1 alpha-2 format - `postal`, string—postal code of the seller's location - `region_code`, string, `^[0-9A-Z]{1,3}$`—internal region code \(state, province, or other territorial area\) in the seller's address, representing the second part of the international area code \(in the ISO 3166-2 format\), without the two-letter country code and separating hyphen - `rating`, string—seller's rating on the marketplace converted to one of the following values: - `VERY_HIGH`—very high - `HIGH`—high - `MEDIUM`—medium - `LOW`—low - `VERY_LOW`—very low - `registration`, string, `^\\d{2}-\\d{2}-\\d{4}$`—date of seller registration on the marketplace in the `DD-MM-YYYY` format - `registration_updated`, string, `^\\d{2}-\\d{2}-\\d{4}$`—date of last change to seller information in the `DD-MM-YYYY` format - `last_login`, string, `^\\d{2}-\\d{2}-\\d{4}$`—date of last seller authentication on the marketplace in the `DD-MM-YYYY` format - `reference`, string—seller identifier on the marketplace - `number_of_transactions`, number—number of payment operations via the intermediary through which the product is sold, over the last 12 months - `volume_of_transactions`, number—amount of payment transactions with the intermediary through which the product is sold, over the last 12 months, in smallest currency units - `product_category`, string—product or service category indicator, can have one of the following values: - `ACCESSORIES`—accessories - `APPLIANCES`—home appliances - `APPS_AND_GAMES`—applications and games - `ARTS_CRAFTS_AND_SEWING`—arts and crafts - `AUTOMOTIVE`—car products - `BEAUTY`—personal care products - `BABY`—children's products - `BABY_CLOTHING`—children's clothing - `BAGS_AND_PURSES`—bags and purses - `BOOKS`—books and other printed publications - `CDS_AND_VINYL`—compact discs, vinyl records, and other physical media audio recordings - `CELL_PHONES_AND_ACCESSORIES`—mobile phones and accessories - `COLLECTIBLES_AND_FINE_ARTS`—art and collectibles - `DIGITAL_MUSIC`—musical recordings in digital format - `ELECTRONICS`—electronic devices - `GROCERY_AND_GOURMET_FOOD`—grocery and gourmet foods - `HANDMADE`—handmade products - `HEALTH_AND_PERSONAL_CARE`—health and personal care products - `HOME_AND_KITCHEN`—home and kitchen products - `INDUSTRIAL_AND_SCIENTIFIC`—industrial and scientific equipment - `LUGGAGE_AND_TRAVEL_GEAR`—luggage, travel accessories, and other travel products - `MAGAZINE_SUBSCRIPTIONS`—subscriptions to print or digital periodicals - `MEN_CLOTHING`—men's clothing - `MUSICAL_INSTRUMENTS`—musical instruments - `OFFICE_PRODUCTS`—office supplies - `PATIO_LAWN_AND_GARDEN`—patio and garden supplies - `PET_SUPPLIES`—pet supplies - `SHOES`—shoes - `SOFTWARE`—software - `SPORTS_AND_OUTDOORS`—sports and outdoor supplies - `TOOLS_AND_HOME_IMPROVEMENT`—construction tools and home improvement supplies - `TOYS_AND_GAMES`—toys and games - `VIDEO_GAMES`—video games - `WOMEN_CLOTHING`—women's clothing - `line_item_references`, array of strings—array of web service page URLs with product or service descriptions - `shipping_references`, array of strings—array of strings with a list of shipping identifiers for purchased items within a web service or delivery service | |`receipt_data` string, optional |Information about line items in an order. Can be used to generate a proof of purchase document to be sent to the customer \(see [this article](en_PP_receipt_data.md)\).Consists of a string obtained by encoding a JSON object using the Base64 encoding scheme.The JSON object can include various combinations of elements from the list of supported data. - `positions`, array—array which allows listing up to 300 purchased items in the notification. For each listed item, the following information can be specified: - `amount`, integer—the price of the item - `quantity`, integer—the number of purchased items of the same kind - `tax`, integer—the VAT rate if it differs for different listed items - `tax_amount`, integer—the VAT amount - `description`, string—the description of the purchased item. - `total_tax_amount`, integer—the total VAT amount for the entire purchase - `common_tax`, integer—the VAT rate if it is the same for all listed items ``` {#codeblock_flr_yl1_xkc .language-json} { "receipt_data":{ "positions":[ { "quantity":3, "amount":10000, "tax":18, "tax_amount":1800, "description":"Design frame" } ], "total_tax_amount":1800, "common_tax":18 } } ``` ``` {#codeblock_pgx_vt1_xkc} receipt_data: "eyAgCiAgICAgICJwb3NpdGlvbnMiOlsgIAogICAgICAgICB7ICAKICAgICAg ICAgICAgInF1YW50aXR5IjozLAogICAgICAgICAgICAiYW1vdW50IjoxMDAwMCwKICAgICAgICAgICAgInRheCI 6MTgsCiAgICAgICAgICAgICJ0YXhfYW1vdW50IjoxODAwLAogICAgICAgICAgICAiZGVzY3JpcHRpb24iOiJEZXN pZ24gZnJhbWUiCiAgICAgICAgIH0KICAgICAgXSwKICAgICAgInRvdGFsX3RheF9hbW91bnQiOjE4MDAsCiAgICA gICJjb21tb25fdGF4IjoxOCAgICAgICAKfQ" ``` | |`recipient_address` string, optional |The name of the street and the house number\(including any additional parts of the address such as building indicators and apartment numbers\) in the address of the payment recipient. The length of the string cannot be more than 99 characters.Required for Visa Direct debiting operations performed with Visa cards issued in Australia, Canada, or New Zealand. Example: `Via Dietro Duomo 36` | |`recipient_card_holder` string, optional |The first and last names of the holder of the payment card used to receive the payment. Should be spelled as specified on the card and adhere to the rules for specifying names \(see [this article](en_faq_payment_processing.md#en_faq_payment_processing__section_dbx_kby_t1c)\). The length of the string cannot be more than 255 characters. Example: `Fran Petrarca` | |`recipient_city` string, optional |The name of the place of residence \(e.g., town, city, or other settlement type\) in the address of the payment recipient. The length of the string cannot be more than 25 characters. Example: `Padova` | |`recipient_country` string, optional |The country code of the place of residence of the payment recipient. Specified in the ISO 3166-1 alpha-2 format. Pattern: `^[A-Z]{2}$`. Example: `IT` | |`recipient_day_of_birth` string, optional |The date of birth of the payment recipient. Specified in `DD-MM-YYYY` format. Required if a Visa card is used to receive the payment. Pattern: `^\\d{2}-\\d{2}-\\d{4}$`. Example: `12-12-1990` | |`recipient_first_name` string, optional |The name of the payment recipient. The length of the string cannot be more than 255 characters. Example: `Fran` | |`recipient_last_name` string, optional |The last name of the payment recipient. The length of the string cannot be more than 255 characters. Example: `Petrarca` | |`recipient_pan` string, optional |The number of the payment card used to receive the payment. Specified as is, without masked characters, spaces, or other separators. Pattern: `^[0-9]{15,19}$`. Example: `4314220000000056` | |`recipient_state` string, optional |The local code of the region\(state, province, or other administrative subdivision type\) of the payout recipient's address \([details](en_Gate_payout.md)\). 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. Should be specified for processing payouts when the `recipient_country` parameter is also specified in the same query and its value is the country code of Canada \(`CA`\) or the United States \(`US`\). Pattern: `^[A-Z]+$`. Example: `AK`\(when specified for Alaska, designated `US-AK`\) | |`recipient_state_code` string, optional |The local code of the region\(state, province, or other administrative subdivision type\) associated with the recipient's address for fund transfers using Mastercard MoneySend and Visa Direct services \([details](en_gate_money_transfer_services.md)\). 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. Should be specified for Mastercard MoneySend and Visa Direct operations when the `recipient_country` parameter is also specified in the same query and its value is the country code of Canada \(`CA`\) or the United States \(`US`\). Pattern: `^[A-Z]+$`. Example: `ON`\(when specified for Ontario, designated `CA-ON`\) | |`recipient_wallet_id` string, optional |The identifier of the digital wallet used by the payment recipient. The length of the string cannot be more than 64 characters. Specified as is, without masked characters, spaces, or other separators. Pattern: `^[^!@&~№{}|<>\\[\\]]*$`. Example: `WID20071304` | |`recipient_wallet_owner` string, optional |The first and last names of the owner of the digital wallet used by the payment recipient. Should be spelled the same way as in the payment system and be at most 255 characters long in total. Pattern: `/^[\p{L}\p{M}0-9 .'-]+$/u`. Example: `Fran Petrarca` | |`recurring` string, optional |Information about the COF purchase being registered \([details](en_pp_recurring.md)\). If the Ecommpay JavaScript library is used, can be passed as a JSON object\(containing various combinations of elements from the list of supported data\), otherwise should be specified as a URLobtained by encoding the source JSON object. - `register`, boolean—indicator that specifies whether a COF purchase should be registered - `type`, string, `^[RCU]$`—type of the COF purchase to register, possible values: - `R`—regular purchase - `C`—one-click purchase - `U`—autopurchase - `period`, string, `^[DWMQY]$`—frequency of debits \(for a regular COF purchase\), possible values: - `D`—daily - `W`—weekly - `M`—monthly \(if the set day is not available in the next month, for example, 31, the payment is performed on the last day of the month\) - `Q`—quarterly - `Y`—annually - `amount`, integer—fixed amount of subsequent debits \(for a regular COF purchase\) in the smallest currency unit - `interval`, integer—multiplier to increase debiting frequency \(i.e. the interval of performing regular COF purchases\). This parameter is used in conjunction with the `period` parameter and should be assigned a numeric value from `1` to `100` - `time`, string, `^([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$`—time of performing subsequent debits \(for a regular COF purchase\) in the `hh:mm:ss` format. The parameter is used if the `period` parameter is specified in the request - `start_date`, string, `^([0-3]\\d-){2}[1-2]\\d{3}$`—date on which the first debit operation is performed \(for a COF regular purchase\). This parameter is used in conjunction with the `scheduled_payment_id` parameter and should be specified in the `DD-MM-YYYY` format - `expiry_day`, integer orstring—calendar day on which the specified duration period of the COF purchase will end \(the value should be provided as an integer from `1` to `31`, without a leading zero, in accordance with the Gregorian calendar\) - `expiry_month`, integer orstring—month in which the specified duration period of the COF purchase will end \(the value should be provided as an integer from `1` to `12`, without a leading zero, in accordance with the Gregorian calendar\) - `expiry_year`, integer—year in which the specified duration period of the COF purchase will end \(in the `YYYY` format, in accordance with the Gregorian calendar\) - `scheduled_payment_id`, string—identifier assigned to the payment within which scheduled debits are performed, it must differ from the identifier of the payment made to register a COF purchase that is specified in `payment_id` ``` {#codeblock_ypd_tqt_wkc .language-json} { "register": true, "type": "U" } ``` ``` {#codeblock_zpd_tqt_wkc .language-json} %7B%22register%22%3Atrue%2C%22type%22%3A%22U%22%7D%2C ``` | |`redirect` integer \(boolean\*\), optional |Indicator specifying whether the payment form should be opened on a new HTML page regardless of the type of device being used \(see [this article](en_PP_method_NewTab.md)\). Can have one of the following values: - `0`—the payment form should beopened usingeither the default method or a different method specified in other parameters, - `1`—the payment form should beopened in a new HTML page. If the `merchant.js` library is used \([details](en_pp_interaction_organisation.md)\), this parameter can be specified as a boolean value and set to either `false` or `true`. Example: `1` | |`redirect_fail_mode` string, optional |Indicator that specifies the mode for the final redirection of the customer to the web service when the purchase is declined. Can have one of the following values: - `iframe`—opens the pagein an iframe object \(this value is ignored if the payment form is opened in a new tab and the customer is redirected in that new tab\), - `parent_page`—opens the pagein the currently active tab, - `blank_page`—opens the pagein a new tab. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `blank_page` | |`redirect_fail_url` string, optional |URL for final redirection to the web service if the purchase is declined. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `https://cosmoshop.jupiter.example/pages/failed` | |`redirect_on_mobile` integer \(boolean\*\), optional |Indicator specifying whether the payment form should be opened on a new HTML page for mobile devices \(see [this article](en_PP_method_NewTab.md)\). Can have one of the following values: - `0`—the payment form should beopened using eitherthe default method or a different method specified in other parameters, - `1`—the payment form should beopened in a new HTML page. If the `merchant.js` library is used \([details](en_pp_interaction_organisation.md)\), this parameter can be specified as a boolean value and set to either `false` or `true`. Example: `1` | |`redirect_success_mode` string, optional |Indicator that specifies the mode for the final redirection of the customer to the web service when the purchase is completed. Can have one of the following values: - `iframe`—opens the pagein an iframe object \(this value is ignored if the payment form is opened in a new tab and the customer is redirected in that new tab\), - `parent_page`—opens the pagein the currently active tab, - `blank_page`—opens the pagein a new tab. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `parent_page` | |`redirect_success_url` string, optional |URL for final redirection to the web service by customer decision when a purchase is completed. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `https://cosmoshop.jupiter.example/pages/success` | |`redirect_return_url` string, optional |URL for preliminary redirection to the web service from third-party services such as banks and other payment systems. Requires this functionality \(for specific third-party services\) to be set up and enabled beforehand. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `https://cosmoshop.jupiter.example/pages/third_party_services` | |`redirect_tokenize_mode` string, optional |Indicator that specifies the mode for the automatic final redirection of the customer to the web service when a token has been generated in Card Tokenize mode using the relevant payment details. Can have one of the following values: - `iframe`—opens the pagein an iframe object \(this value is ignored if the payment form is opened in a new tab and the customer is redirected in that new tab\), - `parent_page`—opens the pagein the currently active tab. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `parent_page` | |`redirect_tokenize_url` string, optional |URL for automatic final redirection to the web service when a token has been generated in Card Tokenize mode using the relevant payment details. For more information about managing options for redirecting the customer back to the web service, see [this article](en_PP_redirect_modes.md). Example: `https://cosmoshop.jupiter.example/pages/tokenize` | |`region_code` string, optional |The country code in the customer's address. Specified in the ISO 3166-1 alpha-2 format. If this parameter is not specified, the country code is determined using the customer's IP address or other parameters. In those cases when the payment form includes fields for the customer's phone number \(as a rule, this happens during such auxiliary procedures as collecting customer data or submitting additional payment information\), the value of the `region_code` parameter can be used to determine the customer's country and apply the corresponding phone number mask \([details](en_faq_payment_processing.md#en_faq_payment_processing__section_d1k_12x_2lc)\). Pattern: `^[A-Z]{2}$`. Example: `FR` | |`sender_address` string, optional |The name of the street and the house number\(including any additional parts of the address such as building indicators and apartment numbers\) in the address of the payment sender. The length of the string cannot be more than 99 characters. Example: `Via Certaldo 18` | |`sender_city` string, optional |The name of the place of residence \(e.g., town, city, or other settlement type\) in the address of the payment sender. The length of the string cannot be more than 25 characters. Example: `Florence` | |`sender_country` string, optional |The code of the country in the address of the payment sender. Specified in the ISO 3166-1 alpha-2 format. Pattern: `^[A-Z]{2}$`. Example: `IT` | |`sender_descriptor` string, optional |Information about the merchant provided to other parties involved in card payment processing and subsequently to customers. Can be used for issuing payouts. The length of the string is limited to 22 characters for cards of the Mastercard card network and 25 characters for cards of the Visa card network. For more information on working with this parameter, see [this article](en_pp_descriptor.md). Example: `Cosmotour* to the Moon` | |`sender_first_name` string, optional |The first name of the payment sender. The length of the string cannot be more than 255 characters. Example: `Gio` | |`sender_last_name` string, optional |The last name of the payment sender. The length of the string cannot be more than 255 characters. Example: `Boccaccio` | |`sender_state` string, optional |The local code of the region\(state, province, or other administrative subdivision type\) of the payment sender's address. 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. Should be specified when the `sender_country` parameter is also specifiedin the same query. Example: `52`\(when specified for Tuscany, designated `IT‑52`\) | |`sender_wallet_id` string, optional |The identifier of the digital wallet used by the payment sender. The length of the string cannot be more than 64 characters. Specified as is, without masked characters, spaces, or other separators. Example: `WID16061313` | |`sender_zip` string, optional |The postal code in the address of the payment sender. The length of the string cannot be more than 255 characters. Example: `50142` | |`signature` string, required |The digital signature used to sign the query parameters. Should be generated using the appropriate algorithm after all relevant parameters have been specified \(see [this article](en_platform_signature.md)\). | |`style_id` integer, optional |The identifier of the payment form design style. Can be used for the Payment Page design style \(see [this article](en_PP__design_customisation.md)\). Example: `6123` | |`target_element` string, optional |The iframe element identifier\(for the HTML page of the web service\) of the element where the payment form should be opened \(see [this article](en_PP_method_Embedded.md)\). Example: `widget-container` | |`uuid` string, optional |Identifier used for internal purposes. The length of the string cannot be more than 64 characters.Can be used to invoke the payment form in Payout modeby specifying the value received in the payout registration callback \(see [this article](en_pp_payout.md)\). Example: `Lm3V9lmykig2d51Z/2Yrnue9+o5GTkVvY/sRDLKAnSS+AagnGCJ1nsPg==` | **Parent topic:**[Payment Page](en_PP_about.md)