When using the live console and the provided sample encrypted nonce we get error 153 (unable to decrypt data). This happens in both live and test mode(using the sandbox account). This is the exact same error we get when we attempt to pass in our own encrypted token. Any help will be much appreciated.
03-16-2019 04:34 PM
Has anybody out there gotten this API to work?
03-18-2019 07:29 AM
03-18-2019 01:11 PM
Hi @Renaissance
Thanks for your response. Do you mean the public key that needs to be generated in the admin panel? In this case, yes. I have followed these steps to obtain the public Key
To generate an Android Pay public key:
Step 1. Log in to the Merchant Interface.
Step 2. Navigate to Account > Digital Payment Solutions > Android Pay.
Step 3. In the Manage Your Android Pay Keys section, click Generate Public Key.
Step 4. After the key generates, you can download it as a text file by clicking Download.
This is well documented at https://developer.authorize.net/api/reference/features/in-app.html
The api live console is giving that error when I use my sandbox account in both live and test mode. Have you been able to make it to work?
Thanks again
03-18-2019 01:29 PM
03-18-2019 02:38 PM
Thank you so much for taking care of this issue. I implemented that part as well and I used the public key hash I got in the generated Certificate, this file looks like this:
[
KeyID: maryrAuthNet23
PublicKey: my_public_key
PublicKeyHash: my_public_key_hash
CreateTimeUTC: 2018-12-03T15:13:52.76
]
I have to mention I am not actually using Android Pay, as you mention, the link provided is not working, and I found Google has a new version called Google Pay. I used the documentation at https://developers.google.com/pay/api/web/guides/tutorial and the DIRECT method in this section https://developers.google.com/pay/api/web/guides/tutorial#tokenization because Authorize.Net was not in the list of supported gateways. I received a token by Google and I followed the steps to encrypt the data and send the resulting nonce to the api(using the public key hash). Hope this helps to understand my problem. Thanks
03-18-2019 03:50 PM
03-18-2019 05:16 PM
@Renaissance Thanks again, you are really taking care of it, and I deeply appreciate it.
About your idea of using the authorize.net android sdk(the Accept Mobile SDK) is that I am in a Xamarin project and I couldn't find a similar. Instead, I am using the Google's native SDK. If you see in the documentation https://developer.authorize.net/api/reference/features/in-app.html when the process is explained, the Step 1 can either be by using the Accept Mobile SDK or directly using Apple or Google's native SDK. We decided to use the second option in this first step.
Step 1.
The Accept Mobile SDK sends payment and authentication information to Authorize.Net, which returns a payment nonce.
Apple Pay and Android Pay: Send a request using Apple or Google's native SDK to retrieve an encrypted BLOB (Binary Large Object), which identifies the customer's payment information.
We didn't find any documentation for integrating Android Pay and we used Google Pay, that seems to be an upgrade. If you go to the documentation
https://developers.google.com/pay/api/android/guides/tutorial#tokenization
In this section there are two methods, but given the fact that Authorize.net is not listed in the supported payment gateways we used the DIRECT method, but perhaps this is what is causing the fail. Could you please provide a link to Android Pay integration, I could integrate it instead of keeping trying Google Pay. Thank you!!
03-18-2019 06:32 PM - edited 03-18-2019 06:33 PM
03-18-2019 07:54 PM