- Вступ
- Початок роботи
- Рецепти
- Загальні концепції
- Особистий кабінет торговця
- Довідка
- Наші методи
- E-Commerce еквайринг
- Грошові перекази
- Платежі з цифрового гаманця
- Картки та рахунки (UAPI)
- Перекази SEPA
- Платіжні операції з використанням токенів
- Apple Pay
- Google Pay
/PaymentGoogleD
Developing
Cloud Mock
https://mock.apidog.com/m1/483896-0-default
Cloud Mock
https://mock.apidog.com/m1/483896-0-default
POST
/PaymentGoogleD
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
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.
fmparam
object
optional
ReceiverCNAME
string
optional
ReceiverEDRPOU
string
optional
>= 8 characters<= 8 characters
Match pattern:
^[0-9]
ReceiverIBAN
string
optional
Має починатися з UA, далі - 2 контрольні цифри, 6 символів МФО відповідного банку, та 19 символів номера банківського рахунку. Загальна довжина — 29 символів.
Підтримуються лише IBAN, випущені українськими банками.
>= 29 characters<= 29 characters
Match pattern:
^UA\d{2}\d{6}\d{19}$
SenderCNAME
string
optional
SenderEDRPOU
string
optional
>= 8 characters<= 8 characters
SenderIBAN
string
optional
Має починатися з UA, далі - 2 контрольні цифри, 6 символів МФО відповідного банку, та 19 символів номера банківського рахунку. Загальна довжина — 29 символів.
Підтримуються лише IBAN, випущені українськими банками.
>= 29 characters<= 29 characters
Match pattern:
^UA\d{2}\d{6}\d{19}$
SenderPIB
string
optional
SenderITN
string
optional
(або номер та серію паспор ту, якщо особа не має IПН)
ReceiverPIB
string
optional
ReceiverITN
string
optional
(або номер та серію паспорту, якщо особа не має IПН)
TranID
string
optional
Example
{
"description": "POST PaymentGooglD MC",
"additionalParameters": {
"merchantIdType": "IDTP01",
"merchantIdNumber": "ABCDXYZ124"
},
"language": "uk",
"preAuth": true,
"returnUrl": "https://secure.secure3d.net/m3ua/action/b1133ecc-a66b-434f-8e46-62f1a3fc0e0f/complete_3ds",
"failUrl": "https://secure.secure3d.net/m3ua/action/b1133ecc-a66b-434f-8e46-62f1a3fc0e0f/complete_3ds",
"amount": 98963,
"currencyCode": 980,
"paymentData": {
"paymentMethod": "CARD",
"paymentMethodDetails": {
"authMethod": "CRYPTOGRAM_3DS",
"pan": "4123######1110",
"expirationMonth": 12,
"expirationYear": 2023,
"cryptogram": "AQAAAAAAAY+p/s0fJN67QJgAAAA=",
"eciIndicator": "07"
}
}
}
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/PaymentGoogleD' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "POST PaymentGooglD MC",
"additionalParameters": {
"merchantIdType": "IDTP01",
"merchantIdNumber": "ABCDXYZ124"
},
"language": "uk",
"preAuth": true,
"returnUrl": "https://secure.secure3d.net/m3ua/action/b1133ecc-a66b-434f-8e46-62f1a3fc0e0f/complete_3ds",
"failUrl": "https://secure.secure3d.net/m3ua/action/b1133ecc-a66b-434f-8e46-62f1a3fc0e0f/complete_3ds",
"amount": 98963,
"currencyCode": 980,
"paymentData": {
"paymentMethod": "CARD",
"paymentMethodDetails": {
"authMethod": "CRYPTOGRAM_3DS",
"pan": "4123######1110",
"expirationMonth": 12,
"expirationYear": 2023,
"cryptogram": "AQAAAAAAAY+p/s0fJN67QJgAAAA=",
"eciIndicator": "07"
}
}
}'
Responses
🟢200Success
application/json
Body
redirect
string
optional
<= 512 characters
info
string
required
● Your order is proceeded, redirecting...
● Operation declined. Please check the data and available balance of the card. Redirecting...
● Sorry, payment cannot be completed. Redirecting...
● Payment declined. Please, contact the merchant. Redirecting...
● Payment declined. Please, contact the merchant. Redirecting...
● Payment declined. Please, contact your bank. Redirecting...
● Cannot connect to your bank. Please, contact your bank. Redirecting...
● Processing timeout. Please, try again later. Redirecting...
<= 512 characters
errorCode
string
optional
● 0 in the case of a successful transaction
● Other code if an error occurred when processing the request.
<= 3 characters
lookup
boolean
optional
● true — LookUp checks are enabled
● false — LookUp checks are disabled
This parameter is displayed if the Lookup feature is configured in EPG.
orderStatus[]
object
required
errorCode
string
required
● 0 in the case of a successful transaction
● Other code if an error occurred when processing the request.
>= 1 characters<= 3 characters
errorMessage
string | null
optional
<= 512 characters
orderNumber
string
required
<= 32 characters
orderStatus
number
optional
The possible values of the field are listed in the orderStatus values.
>= 1<= 2
actionCode
number
required
<= 3
actionCodeDescription
string
required
<= 512 characters
amount
number
required
currency
number
required
<= 3
date
string
required
merchantOrderParams[]
object
optional
See the merchantOrderParams block parameters table below.
attributes[]
object
required
See the attributes block parameters table below.
cardAuthInfo[]
object
optional
See the cardAuthInfo block parameters table below.
success
boolean
required
data[]
object
optional
orderId
string
required
<= 36 characters
Example
{
"redirect": "https://msk-aix-wbl01svng.bt.bpc.in/?orderId=d7d3d572-9f17-4c50-a07c-f53bb07e43f3",
"info": "Ваш платёж обработан, происходит переадресация...",
"lookup": false,
"orderStatus": {
"errorCode": "0",
"errorMessage": "Успешно",
"orderNumber": "4505",
"orderStatus": 2,
"actionCode": "0",
"actionCodeDescription": "Без ошибок",
"amount": 1000,
"currency": 980,
"date": "1621438342828",
"merchantOrderParams": null,
"attributes": [
{
"name": "mdOrder",
"value": "d7d3d572-9f17-4c50-a07c-f53bb07e43f3"
}
],
"cardAuthInfo": {
"pan": "516854**0704",
"expiration": 202212,
"cardholderName": null,
"authorizationResponseId": "005595",
"secureAuthInfo": {
"eci": 0,
"cavv": null,
"xid": null,
"threeDSInfo": null
}
}
},
"preAuth": false,
"success": true,
"data": {
"orderId": "d7d3d572-9f17-4c50-a07c-f53bb07e43f3"
},
"errorCode": "0"
}