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." } ] } }
Solved! Go to Solution.
04-03-2018 12:45 AM - edited 04-03-2018 12:47 AM
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.
04-16-2018 11:19 PM
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" } ] } } } }
04-03-2018 01:48 AM
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.
04-16-2018 11:19 PM
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."
06-08-2020 03:49 PM
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
04-26-2022 08:52 AM