Re: Visa Checkout Decryption Not Working

Solved! Go to solution
dragthor
Helper

Visa Checkout Decryption Not Working

Visa Checkout Integration Guide Version 19.01

 

In the above document I am unable to get the C# example code and the Node.js example code to successfully decrypt encPaymentData return by the Javascript modal.

 

Please verify the following:

 

"payload" means encPaymentData

"wrappedKey" means encKey

 

And when I call this function (in C#) - decryptPayload(String key, String wrappedKey, String payload), the "key" parameter is the "Shared Secret" underneath the "API Key" in the Visa Developer Portal, right?

 

Thanks.

11 REPLIES 11
dragthor
Helper

Re: Visa Checkout Decryption Not Working

In the node.js example - HMAC validation failure.

 

In the C# example - Padding is invalid and cannot be removed.

 

jvenkata
Community Moderator

Re: Visa Checkout Decryption Not Working

Hello,

 

Since this question involves a lot of back and forth communication to identify the root cause, please reach out to Visa Checkout Support @ developer-support@mail.digital.visa.com with all required details as mentioned above. 

 

Someone will get in touch with you.

 

Thanks,

Jai

dragthor
Helper

Re: Visa Checkout Decryption Not Working

Really?  Its the exact code examples from the PDF documentation.

jvenkata
Community Moderator

Re: Visa Checkout Decryption Not Working

Hi, Sorry for the incovienience. I will ask the team to look at the documentation and the errors you are facing and have them updated accordingly. In the mean time, in order to resolve your issue quickly, please do reach out to the Visa Checkout Support Team in the email address provided.

 

Thanks,

Jai

dragthor
Helper

Re: Visa Checkout Decryption Not Working

Done.  However, this forum is not that useful if a solution is not posted for others to see.

jvenkata
Community Moderator

Re: Visa Checkout Decryption Not Working

Hi,

 

We will post the solution here once it's resolved. Thanks for sending out the details.

 

Thanks,

Jai

dragthor
Helper

Re: Visa Checkout Decryption Not Working

I am literally using the exact code examples for both node.js and C#.  Neither work for decrypting the encPaymentData payload.

dragthor
Helper

Re: Visa Checkout Decryption Not Working

Here is a public link to both the node.js and C# example code -

 

https://drive.google.com/open?id=1j-XaO5rS_G7_-9vQ5TAqhLZvJuFsQE0Y

 

dragthor
Helper

Re: Visa Checkout Decryption Not Working

Why can't I see the "outbound and encryption" keys option/tab?Capture.PNG