- Вступ
- Початок роботи
- Рецепти
- Загальні концепції
- Особистий кабінет торговця
- Довідка
- Наші методи
- E-Commerce еквайринг
- Грошові перекази
- Платежі з цифрового гаманця
- Картки та рахунки (UAPI)
- Перекази SEPA
- Платіжні операції з використанням токенів
- Apple Pay
- Google Pay
/PaymentGoogleE
Developing
Cloud Mock
Cloud Mock
POST
/PaymentGoogleE
Maintainer:Not configured
Request
Body Params application/json
merchant
string | null
optional
>= 1 characters<= 100 characters
mdOrder
string | null
optional
Order number in epg system, if present – a registered order with this number will be used
<= 36 characters
description
string | null
optional
<= 512 characters
additionalParameters[]
object | null
optional
To pass N parameters, the request must contain N additionalParameters tags in which the name attribute contains the name of a parameter and the value attribute contains its value.
name
string
required
<= 255 characters
value
string
required
<= 1024 characters
language
string | null
optional
>= 2 characters<= 2 characters
preAuth
boolean | null
optional
The possible values are:
● true — the payment is considered a two-phase payment and the request is a preauthorization.
● false — the payment is considered a one-phase payment and the request is a purchase.
If this parameter is not specified, by default the payment is considered a purchase.
Default:
false
ip
string | null
optional
<= 19 characters
email
string | null
optional
phone
string | null
optional
<= 255 characters
Match pattern:
system setting:phoneMask
returnUrl
string
required
Required for order registration. Used for redirect after the payment is completed.
<= 255 characters
failUrl
string | null
optional
<= 255 characters
postalCode
string | null
optional
<= 9 characters
streetAddress
string | null
optional
<= 40 characters
amount
number
required
<= 20
currencyCode
number
required
<= 3
paymentToken[]
object
required
https://developers.google.com/pay/api/web/guides/resources/paymentdata-cryptography#payment-method-token-structure
browserParams
object
optional
Required for
"authMethod": "PAN_ONLY"
Not filled
"authMethod": "CRYPTOGRAM_3DS"
browserParams
is a JSON-based structure.
Parameter set and structure
browserParams.
Example
{
"merchant": "googletest",
"amount": "6050",
"currencyCode": "980",
"returnUrl": "https://success.callback.paynet.md",
"paymentToken": {
"signature": "MEUCIAxBoMQ6zFDB8xMXge3fAR/LxkWkbiRspMaReLXFvVMaAiEA9iGejfJaQeryQAxJWwhBWjMBHxdZh/a+UAAOOpZzlrc=",
"intermediateSigningKey": {
"signedKey": "{\"keyValue\":\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE8avPDkzZgeA+UYEZbqfC8TkBWLU8N9yIWomdWB+eQ59I637S+0EsTnXLcQEvQ9B7MwEh7C9v9fsMSTNdwTIL5g\\u003d\\u003d\",\"keyExpiration\":\"1699698690174\"}",
"signatures": [
"MEUCIQD/Ryy5gN+D+d+VYPQSKfb2GD+GM5FXAcN7Q73L/jf06AIgeag2Jk919/eaPillrs0z/r/W2QsTIGi8x+KWtS7oNvw="
]
},
"protocolVersion": "ECv2",
"signedMessage": "{\"encryptedMessage\":\"ezyCQPxVm3JGfw5dm5rKLwpeS9Sf2fV6GS2WRMBE3kEOQR8mui2zlNPQgGn1U22qSuh8OW+HmdD8xxjQ9TX2AfpME6aqUDolb/7veAiaCrjg6iET8hLq3GL75ehEFgFrYIfv3F6g3RTnJ74T7SpHKoRsWLeo9AcY55p5nIR2HZnEuVJcJ2UB/RA347BGzFhQZyiFhEmE2EpqMZACYAH6iz5ob9bvugkGgewG8LvyDjXjqhiKfcAeOrBDGpNQLwM/UvUDm6aBkWbQdnjBwlZmMAwQKwUPtpr9L0hvgs2wWGa4S3YfdqzKJGZ2ka3khNDRNDs6rcPqfyC/1UxLxUJN5AvwfNLwUVEp62eBA5euz2zJrma1KwbyU7ZYtaRVOWxMt/d5Yk2nSeWPeliMAKqTvDKEe4yBdbdVDDg7ZXPJafb5hMeApY8baXCheq5Sd8pJKz3e07i8ucv0ByFOWpN9mngLZqJ1eBZjlQ6oMbM\\u003d\",\"ephemeralPublicKey\":\"BH7SBc3h3OJvYYrv79SzBF0JCTardLwcX8vrkTxwT2K7J6/LPh363m+dz570qwQt9WIXJiTUVBoRyo7kKojcScU\\u003d\",\"tag\":\"6szG7KKgQMv6Zxmq1PF7RnkjtflYm/xMVY/PVzdYdzY\\u003d\"}"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mock.apidog.com/m1/483896-0-default/PaymentGoogleE' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchant": "googletest",
"amount": "6050",
"currencyCode": "980",
"returnUrl": "https://success.callback.paynet.md",
"paymentToken": {
"signature": "MEUCIAxBoMQ6zFDB8xMXge3fAR/LxkWkbiRspMaReLXFvVMaAiEA9iGejfJaQeryQAxJWwhBWjMBHxdZh/a+UAAOOpZzlrc=",
"intermediateSigningKey": {
"signedKey": "{\"keyValue\":\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE8avPDkzZgeA+UYEZbqfC8TkBWLU8N9yIWomdWB+eQ59I637S+0EsTnXLcQEvQ9B7MwEh7C9v9fsMSTNdwTIL5g\\u003d\\u003d\",\"keyExpiration\":\"1699698690174\"}",
"signatures": [
"MEUCIQD/Ryy5gN+D+d+VYPQSKfb2GD+GM5FXAcN7Q73L/jf06AIgeag2Jk919/eaPillrs0z/r/W2QsTIGi8x+KWtS7oNvw="
]
},
"protocolVersion": "ECv2",
"signedMessage": "{\"encryptedMessage\":\"ezyCQPxVm3JGfw5dm5rKLwpeS9Sf2fV6GS2WRMBE3kEOQR8mui2zlNPQgGn1U22qSuh8OW+HmdD8xxjQ9TX2AfpME6aqUDolb/7veAiaCrjg6iET8hLq3GL75ehEFgFrYIfv3F6g3RTnJ74T7SpHKoRsWLeo9AcY55p5nIR2HZnEuVJcJ2UB/RA347BGzFhQZyiFhEmE2EpqMZACYAH6iz5ob9bvugkGgewG8LvyDjXjqhiKfcAeOrBDGpNQLwM/UvUDm6aBkWbQdnjBwlZmMAwQKwUPtpr9L0hvgs2wWGa4S3YfdqzKJGZ2ka3khNDRNDs6rcPqfyC/1UxLxUJN5AvwfNLwUVEp62eBA5euz2zJrma1KwbyU7ZYtaRVOWxMt/d5Yk2nSeWPeliMAKqTvDKEe4yBdbdVDDg7ZXPJafb5hMeApY8baXCheq5Sd8pJKz3e07i8ucv0ByFOWpN9mngLZqJ1eBZjlQ6oMbM\\u003d\",\"ephemeralPublicKey\":\"BH7SBc3h3OJvYYrv79SzBF0JCTardLwcX8vrkTxwT2K7J6/LPh363m+dz570qwQt9WIXJiTUVBoRyo7kKojcScU\\u003d\",\"tag\":\"6szG7KKgQMv6Zxmq1PF7RnkjtflYm/xMVY/PVzdYdzY\\u003d\"}"
}
}'
Responses
🟢200Success
application/json
Body
merchant
string | null
optional
>= 1 characters<= 100 characters
mdOrder
string | null
optional
Order number in epg system, if present – a registered order with this number will be used
<= 36 characters
description
string | null
optional
<= 512 characters
additionalParameters[]
object | null
optional
To pass N parameters, the request must contain N additionalParameters tags in which the name attribute contains the name of a parameter and the value attribute contains its value.
name
string
required
<= 255 characters
value
string
required
<= 1024 characters
language
string | null
optional
>= 2 characters<= 2 characters
preAuth
boolean | null
optional
The possible values are:
● true — the payment is considered a two-phase payment and the request is a preauthorization.
● false — the payment is considered a one-phase payment and the request is a purchase.
If this parameter is not specified, by default the payment is considered a purchase.
Default:
false
ip
string | null
optional
<= 19 characters
email
string | null
optional
phone
string | null
optional
<= 255 characters
Match pattern:
system setting:phoneMask
returnUrl
string
required
Required for order registration. Used for redirect after the payment is completed.
<= 255 characters
failUrl
string | null
optional
<= 255 characters
postalCode
string | null
optional
<= 9 characters
streetAddress
string | null
optional
<= 40 characters
amount
number
required
<= 20
currencyCode
number
required
<= 3
paymentData[]
object
required
gatewayMerchantId
number
optional
paymentMethod
string
optional
<= 50 characters
paymentMethodDetails[]
object
optional
transactionAmount
number
optional
in the minor denomination (for example, cents)
<= 2
cardholderName
string
optional
Name of the cardholder.
This parameter is verified according to the following
criteria.
· Acceptable characters are: Latin letters, 0-9, $, ), (, -, . ,
a space
· Cardholder name must start with a letter
· Minimum length: one Latin letter
· Maximum length: 25 characters
· Null is valid
· Uppercase and lowercase are acceptable.
>= 1 characters<= 25 characters
deviceManufacturerIdentifier
string
optional
paymentDataType
string
optional
paymentData[]
object
optional
messageId
string
optional
messageExpiration
string
optional
additionalparams []
object | null
optional
merchantIdType
string
optional
IDTP1 – Passport
IDTP0010 – Taxpayer ID (ІПН)
IDTP0016 – Company registration number (код ЄДРПОУ)
merchantIdNumber
string
optional
<= 19 characters
browserParams
object
optional
Required for
"authMethod": "PAN_ONLY"
Not filled
"authMethod": "CRYPTOGRAM_3DS"
browserParams
is a JSON-based structure.
Parameter set and structure
browserParams.
Example
{
"redirect": "https://mpit2.ukrcard.com.ua/payment/merchants/ukrposhta-pilot2/finish.html?orderId=dbbdd1b1-3f2f-4353-9421-071508f2821a",
"info": "Ваш платёж обработан, происходит переадресация...",
"errorCode": 0,
"startThreeDS2": false,
"orderStatus": {
"errorCode": "0",
"errorMessage": "Успешно",
"orderNumber": "20230321000011",
"orderStatus": 2,
"actionCode": 0,
"actionCodeDescription": "Запрос успешно обработан",
"amount": 6050,
"currency": "980",
"date": 1679393949945,
"attributes": [
{
"name": "mdOrder",
"value": "dbbdd1b1-3f2f-4353-9421-071508f2821a"
}
],
"cardAuthInfo": {
"expiration": "202812",
"authorizationResponseId": "495762",
"pan": "520424**7840"
},
"authDateTime": 1679393950528,
"terminalId": "UPE00005",
"authRefNum": "000045937309",
"paymentAmountInfo": {
"paymentState": "DEPOSITED",
"approvedAmount": 6050,
"depositedAmount": 6050,
"refundedAmount": 0
},
"bankInfo": {
"bankCountryName": "<Неизвестно>"
},
"fraudLevel": 0
},
"success": true,
"data": {
"orderId": "dbbdd1b1-3f2f-4353-9421-071508f2821a"
}
}
Modified at 2025-03-12 13:00:43