We generated the token using apple pay and transaction is successful for sandbox environment.We used exactly the same process for token generation for live environment but we get the above error:
"Required fields are missing from decrypted data".In sandbox mode
PKMerchantCapability.capability3DS works, while in live mode we get below error:
"This processor does not support this method of submitting payment data."
As mentioned in possible solutions for error codes,
Changing it to PKMerchantCapability.capabilityEMV does not help and gives the below response:
"Required fields are missing from decrypted data".We have set all possible values of
PKPaymentRequest including shippingAddress,Billing contact,etc.Also ensured that merchant account is card not present & encrypted data belongs to merchant.
In live environment,we are setting location of device to US and using US credit card details.Device is located in India.
Sample Response:
{
"transactionResponse": {
"responseCode": "3",
"authCode": "",
"avsResultCode": "P",
"cvvResultCode": "",
"cavvResultCode": "",
"transId": "0",
"refTransID": "",
"transHash": "817E4EEE366139A5598A43F3CA026D41",
"testRequest": "0",
"accountNumber": "",
"accountType": "",
"errors": [
{
"errorCode": "153",
"errorText": "There was an error processing the payment data. Required fields are missing from decrypted data."
}
],
"userFields": [
{
"name": "MerchantDefinedFieldName1",
"value": "MerchantDefinedFieldValue1"
},
{
"name": "favorite_color",
"value": "blue"
}
],
"transHashSha2": "0F4059266DB96EC3DF32F9B4A39F61E3BF26FF67523C31A42FCBBABDC841D3719038BE788DD47BC5227A05042B1BA2198AD4A137A6926BBC39E2C171ED9176B6"
},
"refId": "123456",
"messages": {
"resultCode": "Error",
"message": [
{
"code": "E00027",
"text": "The transaction was unsuccessful."
}
]
}
}