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.
Solved! Go to Solution
In the node.js example - HMAC validation failure.
In the C# example - Padding is invalid and cannot be removed.
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
Really? Its the exact code examples from the PDF documentation.
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
Done. However, this forum is not that useful if a solution is not posted for others to see.
Hi,
We will post the solution here once it's resolved. Thanks for sending out the details.
Thanks,
Jai
I am literally using the exact code examples for both node.js and C#. Neither work for decrypting the encPaymentData payload.
Here is a public link to both the node.js and C# example code -
https://drive.google.com/open?id=1j-XaO5rS_G7_-9vQ5TAqhLZvJuFsQE0Y
Why can't I see the "outbound and encryption" keys option/tab?