Visa Checkout Integration Guide Version 19.01
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?
Solved! Go to Solution
In the node.js example - HMAC validation failure.
In the C# example - Padding is invalid and cannot be removed.
Since this question involves a lot of back and forth communication to identify the root cause, please reach out to Visa Checkout Support @ firstname.lastname@example.org with all required details as mentioned above.
Someone will get in touch with you.
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.
Done. However, this forum is not that useful if a solution is not posted for others to see.
We will post the solution here once it's resolved. Thanks for sending out the details.
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 -
Why can't I see the "outbound and encryption" keys option/tab?