- Overview
- Integration
- Recipes
- General Concepts
- Merchant dashboard
- References
- Our Restful API
- E-Commerce acquiring
- Transfers
- Cards and accounts (UAPI)
- Payment transactions using tokens
- Apple Pay
- Google Pay
- E-Commerce acquiring
/PaymentAppleE
Developing
POST
/PaymentAppleE
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
paymentToken
string
optional
PKPaymentToken.
applePayPaymentObject[]
object
required
https://developer.apple.com/documentation/apple_pay_on_the_web/ap
plepaypayment
either this or paymentToken should be provided.
Example
{
"merchant": "paynet",
"description": "Payload AppleE",
"amount": 6030,
"currencyCode": 498,
"returnUrl": "https://mpit2.ukrcard.com.ua/payment/merchants/ukrposhta-pilot2/finish.html",
"applePayPaymentObject": {
"paymentData": {
"data": "lpPPMjQQBrTw7JFlEpd1g8+HwM15qlIHntddv5JZg5Tt+c0TIUC/8X8dxRNYWRhxGEsctivH5GXfzJ73GvXgsYN9DDhTD2frIje7xDkuEaC+aEptlMQPHJHLVYNhpsDAfizXkgjlBunGhD45fDy/F1TXwjM2P86GkhqHRdNe3XozZ23H9UXEH4kf9Sj9ZC2nhyA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Z/t1drgQbGbgnysxjeLit7WgLidh0Lg=",
"ephemeralPublicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEHVCv5Fp2+fgv53rp5dZQIJf7vFdnP0VCshKUguiHq4ckwoYQUVo7MceTQFdmlFTUC3KRMUiivPCemSqCvRb/FQ==",
"transactionId": "a0163c46486f6eda57ace0c03a626104b7252cff7ef9df22c88b77b1264e9dd4"
},
"version": "EC_v1"
},
"paymentMethod": {
"displayName": "MasterCard 8095",
"network": "MasterCard",
"type": "credit"
},
"transactionIdentifier": "A0163C46486F6EDA57ACE0C03A626104B7252CFF7EF9DF22C88B77B1264E9DD4"
}
}
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/537337-0-default/PaymentAppleE' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchant": "paynet",
"description": "Payload AppleE",
"amount": 6030,
"currencyCode": 498,
"returnUrl": "https://mpit2.ukrcard.com.ua/payment/merchants/ukrposhta-pilot2/finish.html",
"applePayPaymentObject": {
"paymentData": {
"data": "lpPPMjQQBrTw7JFlEpd1g8+HwM15qlIHntddv5JZg5Tt+c0TIUC/8X8dxRNYWRhxGEsctivH5GXfzJ73GvXgsYN9DDhTD2frIje7xDkuEaC+aEptlMQPHJHLVYNhpsDAfizXkgjlBunGhD45fDy/F1TXwjM2P86GkhqHRdNe3XozZ23H9UXEH4kf9Sj9ZC2nhyAt+bckkPcHpnTO38jtkM90U7jTdP7iY3X6zbA/oAW3X/NizZwKj2BFUMsI7tmJWG3WTDDOIIv7y2WlCw202yx1pTG7bZGJh5NHigRwnzOGArjhB+yH2eXlL0VV4Hh+2tH6BDrwU75KgquXpVhDZ0AvcyzCx50hn/sfUgRW5uGbm8dMCGXCosvqL+WqvrQklklRkTa0WuuCtcmSIQ==",
"signature": "MIAGCSqGSIb3DQEHAqC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EC_v1"
},
"paymentMethod": {
"displayName": "MasterCard 8095",
"network": "MasterCard",
"type": "credit"
},
"transactionIdentifier": "A0163C46486F6EDA57ACE0C03A626104B7252CFF7EF9DF22C88B77B1264E9DD4"
}
}'
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"
}
Modified at 2025-03-12 08:10:21