Hi there,
There will be no Test data on the portal for this field but In the VTS guides we have the details on how to get the value for encPaymentInstrument. This is an encrypted value which uses JSON Web Encryption.
Find the information here:
https://qaint.vdp.visa.com/products/vts/guides#merchants_and_wallet_providers
Let me know how this works out!
-Ricardo
Hi,
I am batteling with the exact same problem but from C#.
I have assembled this method below but the error received is the same as which you did and I would like to know if you ever managed to get past this issue?
Any help will be greatly appreciated.
public static string JWEEncodeJose(string message,string key, string secret)
{
HMACSHA256 hmacsha256 = new HMACSHA256();
var keyToUse = hmacsha256.ComputeHash(Encoding.ASCII.GetBytes(secret));
long expireTime = ((long)DateTime.UtcNow.AddHours(1).Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds) / 1000;
var extraHeaders = new Dictionary<string, object>()
{
{ "kid", key },
{ "iat", expireTime.ToString() }
};
string result = Jose.JWT.Encode(message, keyToUse, JweAlgorithm.A256GCMKW, JweEncryption.A256GCM,extraHeaders: extraHeaders);
return result;
}
did anybody resolved this?