i need guides on inapp provisioning for google pay

kaoutar
Helper

i need guides on inapp provisioning for google pay

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.


 

3 REPLIES 3
SyedSa
Community Moderator

Re: i need guides on inapp provisioning for google pay

Hi @kaoutarThank 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.

kaoutar
Helper

Re: i need guides on inapp provisioning for google pay

Hello @SyedSa, i haven't got any answer yet

API_Products
Visa Developer Support Specialist

Re: i need guides on inapp provisioning for google pay

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... 

 

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.