Hi there
My organisation has granted me developer access to their VISA Tokenisation Project.
I've previously worked with VISA checkout/wallet and am familiar with the generation of the x-pay-token header.
Issue I having is that the exact same code I use to generate the x-paytoken header for making calls to the VISA checkout endpoint, do not work when making calls to the VTS service.
I'm correctly set the resourcePath to vts/provisionedTokens as mentioned on the developer website.
However I get a 401 error response each time I try and make a call
https://cert.api.visa.com/vts/provisionedTokens?apikey={{apikey}}
Hey @mcalleja,
I'd like to help you out with the issue your experiencing. Please provide the following information, so I can help troubleshoot the issue:
1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body
Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.
Hi Diana
Here are the details as requested
1. End Point -
https://cert.api.visa.com/vts/provisionedTokens
2. Request Header -
3. Request Body -
{
"clientWalletAccountID": "AiOiJBMjU2R0NNS1ciLCJiI6",
"protectionType": "SOFTWARE",
"clientWalletAccountEmailAddressHash": "DSJFLDSFJSDKNGJ234NSD2",
"accountType": "WALLET",
"clientWalletAccountEmailAddress": "janedoe@mail.com",
"encPaymentInstrument": {
"cvv2": "758",
"provider": {
"clientWalletAccountID": "AiOiJBMjU2R0NNS1ciLCJiI6",
"clientWalletProvider": "12345678901",
"clientDeviceID": "DEiOiJBMjU2R0NNS1ciLCJiI",
"Intent": "PUSH_PROV_MOBILE",
"clientAppID": "APP1",
"isIDnV": false
},
"name": "BillEvans",
"accountNumber": "4411059860000004",
"expirationDate": {
"month": "10",
"year": "2015"
}
},
"locale": "en_US",
"clientAppID": "APP1",
"presentationType": [
"NFC-HCE",
"NFC-SE",
"INAPP",
"MST",
"MSR",
"ECOM",
"QR_CONSUMER_CLOUD"
],
"panSource": "MANUALLYENTERED"
}
4. Response Header (include the x-correlation-id)
Content-Length : 112
Date : Tue, 17 Sep 2019 22:32:42 GMT
Connection : close
5. Response Body
{"responseStatus":{"status":401,"code":"9159","severity":"ERROR","message":"Token validation failed","info":""}}
}}
Hi @mcalleja,
I am also facing same issue even though, i pass the right apikey, properly generated x-pay-token.
May you please share if you have got any resolution to the problem that you have mentioned. Appreciate your inputs
Thank You
Paul
Hey @paul_earnest,
Can you please provide details to the issue you're experiencing? Please provide the following information and x-correlation-id for us to further investigate:
1. Endpoint
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body
Using SoapUI, you can find the x-correlation-id in the Raw Tab of the response header.
I have the same error please help :
Hi @adamlee,
I can't tell from the above which API endpoint you are calling.
Can you please provide the following information and x-correlation-id for us to further investigate:
1. Endpoint
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body
Thanks!
Our issue was with the jwe encrypted payload not being encrypted properly. I'd suggest you reach out to Visa and request a working sample code snippet of how they create the payload.
Cheers
Hi @mcalleja,
I see that you are calling an endpoint in the certification environment. Can you please confirm that your project is currently in the certification stage?
Hi SLi
Yes I can confirm our project is in certification stage