cancel
Showing results for 
Search instead for 
Did you mean: 

Apple Pay:Required fields are missing from decrypted data

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 below 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."
}
]
}
}

 

Pragati
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Re-doing the whole process from creating new bundle identifier,merchant id,registering it to bundle id & on authorize portal,generating a new CSR from Authorize portal and creating new payment processing certificate on apple developer & using 3DS payment type solved the problem in live environment.

View solution in original post

4 REPLIES 4

here is the sample request:

{
    "createTransactionRequest": {
        "merchantAuthentication": {
            "name": "6R..”,
            "transactionKey": "83..”
        },"refId": "123456",
        "transactionRequest": {
            "transactionType": "authCaptureTransaction",
            "amount": 1.00,
            "payment": {
                "opaqueData": {
                    "dataDescriptor": "COMMON.APPLE.INAPP.PAYMENT",
                    "dataValue": "eyJ2ZXJza…….I2MiJ9fQ=="
                }
            },
            "lineItems": {
                "lineItem": {
                    "itemId": "1",
                    "name": "Total",
                    "description": "Cannes logo",
                    "quantity": "1",
                    "unitPrice": 1.00
                }
            },
            "tax": {
                "amount": 0.00,
                "name": "level2 tax name",
                "description": "level2 tax"
            },
            "duty": {
                "amount": 0.00,
                "name": "duty name",
                "description": "duty description"
            },
            "shipping": {
                "amount": 0.00,
                "name": "level2 tax name",
                "description": "level2 tax"
            },
            "poNumber": "456654",
            "billTo": {"firstName": “...”,”lastName": "...”,”address": "11…”,”city": "Su..”,”state": “..”,”zip": "94..”,”country": "United States","phoneNumber": “…”,”email”:”…”},
            "shipTo": {"firstName": "...”,”lastName": "...”,”address": "11..”,”city": "Su..”,”state": “..”,”zip": "94..”,”country": "United States"},
            "customerIP": "182.75.80.6",
            "retail" : { "marketType": "0", "deviceType": "7"},
            "userFields": {
                "userField": [
                    {
                        "name": "MerchantDefinedFieldName1",
                        "value": "MerchantDefinedFieldValue1"
                    },
                    {
                        "name": "favorite_color",
                        "value": "blue"
                    }
                ]
            }
        }
    }
}
Pragati
Member

Re-doing the whole process from creating new bundle identifier,merchant id,registering it to bundle id & on authorize portal,generating a new CSR from Authorize portal and creating new payment processing certificate on apple developer & using 3DS payment type solved the problem in live environment.

We are having the same issue where Visa is working but AMEX and MasterCard is coming back with an error. Any idea how we can resolve this issue? We have done with for the live and test account and still the same issue.

 

"There was an error processing the payment data. Required fields are missing from decrypted data."

jsjung
Member

Hello Pragati

 

How do you generate a new CSR from Auth.net ? We created a new merchant ID on apple pay, and updated our merchant ID on auth.net, but it re-downloads the same CSR as before