cancel
Showing results for 
Search instead for 
Did you mean: 

Apple Pay integration error "153 Unable to decrypt data"

Hi Guys,

 

Maybe someone already faced such error while integrating Aplle Pay. We're getting error "153 Unable to decrypt data"

 

We try to send paymentData.data with base64 encoding (see the screenshot below):

 

Apple Pay Payment data 

 

What exactly of that should we use in setDataValue OpaqueDataType?

 

I would really appreciate any help.

Thank you.

vgdesign
Member
2 REPLIES 2

I got stuck with this exact issue. Have you solved this?

I would love to know if you ended up getting applepay setup to work with Authorize.NET API.

EmDev
Member

Please look at GitHub - AuthorizeNet/accept-sample-app: This application provides examples of how to use the Author...

File:  applePayCaller.js

Line 117:  createTransaction(paymentToken.paymentData);

Line 17-44: specifically lines 22-25:

let objJsonStr = JSON.stringify(dataObj);
console.log(objJsonStr);
let objJsonB64 = window.btoa(objJsonStr);
console.log(objJsonB64);

Lines 27-41: call to your service for authorization/Capture.

Seems to work out for me.