Apple Pay Hosted Checkout Objects Reference (Response)
​

Response objects

For the Full Response example click here​
​

ApplePayload Object

Name
Type
Always exists
Description
billingContact
​PaymentContact​
No
Contains all transaction data. For more details please click on the link
shippingContact
​PaymentContact​
No
This is a response object that's returned by Google after a payer approves payment
token
PaymentToken
Yes
This is a response object that's returned by Google after a payer approves payment
​

PaymentToken Object

Name
Type
Always exists
Description
paymentData
JSON
Yes
An object containing the encrypted payment data. This is the object that needs to be Base64 Encoded and sent to gateway as xCardNum.
paymentMethod
​PaymentMethod​
Yes
Information about the card used in the transaction.
transactionIdentifier
String
Yes
A unique identifier for this payment
paymentData use example
1
var reqGateway = new
2
{
3
.........
4
xcardnum = Convert.ToBase64String(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(req.paymentData)))
5
.........
6
};
Copied!
​

PaymentComplete Object

An object returned from onPaymentAuthorize ajax call - typically a Gateway Response An example of PaymentComplete Response returned by iFields is below:
1
{
2
"xResult": "A",
3
"xStatus": "Approved",
4
"xError": "",
5
"xErrorCode": "00000",
6
"xRefNum": "481244058",
7
"xExp": "0424",
8
"xAuthCode": "OK8853",
9
"xBatch": "6332569",
10
"xAvsResultCode": "YYY",
11
"xAvsResult": "Address: Match & 5 Digit Zip: Match",
12
"xCvvResultCode": "S",
13
"xCvvResult": "Should be On card but Not so indicated",
14
"xAuthAmount": "1.12",
15
"xMaskedCardNumber": "5xxxxxxxxxxx6344",
16
"xCardType": "MasterCard",
17
"xName": "Test Applepay",
18
"xToken": "34q9h58n68qh24p7719m76m0nhm013hh",
19
"xMID": "xxxxxxxxxxx0661",
20
"xTID": "xxxx0003",
21
"xDate": "7/13/2021 7:18:02 PM",
22
"xAuthNetwork": "3",
23
"xEntryMethod": "Keyed",
24
"xCAVV": "ALyaPlPZZIgIADhFniB+AoABFA==",
25
"xEciFlag": "01"
26
}
Copied!
Export as PDF
Copy link