Hello, i'm trying to execute the api https://sandbox.api.visa.com/inapp/provisioning/cardData/googlePay to get an OPC but it always returns this:
{
"responseStatus": {
"status": 401,
"code": "9159",
"severity": "ERROR",
"message": "Token Validation Failed",
"info": ""
}
}
i have followed everything in the documentation to generate the x-pay-token but still it's invalid. Is the problem might be because of the request body? i'm testing with the same request body provided in the documentation. If that's the issue can you please walk me through how to test that api?
this is the data i use to generate my x-pay-token:
String apiKey = "<my API token>";
String sharedSecret = "<my shared secret>";
String resourcePath = "provisioning/cardData/googlePay";
String queryString = "apiKey=" + apiKey;
String requestBody = "{\n" +
" \"vCardID\": \"v-123-b25dd0af-2960-420b-8aaa-49b3e466c00f\",\n" +
" \"deviceID\": \"W85OGhjZTk2dsr452dgsr51j\",\n" +
" \"clientCustomerID\": \"ae25OGhjZTk2dsr452dgsr51\"\n" +
"}";
please correct me if i'm wrong as soon as possible.
Hi @kaoutar, Thank you for reaching out. One of our agents will get back to you soon. Until then, if any community members have information that may help, feel free to reply to this thread.
Hello @SyedSa, i haven't got any answer yet
HI @kaoutar,
Please refer to the answer posted on 06-16-2023 03:39 PM here: https://community.developer.visa.com/t5/Implementation-API-Sample-Code/Field-Level-Encryption-univer...