Test Data Expired, Unable to test Payment Account Validation API

Solved! Go to solution
Russel
Helper

Test Data Expired, Unable to test Payment Account Validation API

Hello visa Team,

 

I am unable to test Payment Account Validation API, because all test data I have are related to expired test card, from 2020-03 and before. Kindly assist me to get access to recent and up-to-date data.

 

Regards.

 

Russel M

Full stack web Developer
6 REPLIES 6
API_Products
Visa Developer Support Specialist

Re: Test Data Expired, Unable to test Payment Account Validation API

Hey @Russel,

 

Are you using the test data from your project app? The test data for your Visa Developer application is available in the Dashboard under test data in the left navigation, this will ensure that you are using valid data that has been provisioned for specific scenarios (refer to screenshot below). 

20190905 Test Data.png

 

If you're receiving an error, please provide the information below:

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.

 

Please visit our Visa Developer Error Codes page to learn more about error codes and how to resolve there - https://developer.visa.com/pages/visa-developer-error-codes 

 

If you don't find the error code you're looking for, please refer to the API-specific error codes in its respective documentation pages. Someone will be happy to provide assistance if you have other questions.




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.

Russel
Helper

Re: Test Data Expired, Unable to test Payment Account Validation API

Hello Diana,

 

I am using the Data provided as you mentioned. The problem is that ALL Cards data provided in the test Data Tab have Expiration Date from 2020-03 and Older, they have already EXPIRED.

This is why when testing the via the Card Validation API, I get this:

Method: POST

Url: https://sandbox.api.visa.com/pav/v1/cardvalidation

Body:

{
    "systemsTraceAuditNumber": "743728",
    "cardCvv2Value": "672",
    "primaryAccountNumber": "4957030005123304",
    "retrievalReferenceNumber": "015221743728",
    "cardExpiryDate": "2020-03"
}

Response:

{
    "errorMessage": "API Validation Error: 3001. Expiration Date has invalid content or has expired."
}
 
I would then like to have UP-TO-DATE DATAs for test purpose in my TESTDATA TAB.
Please support me on that.
 
Regards.
Russel.
Full stack web Developer
Russel
Helper

Re: Test Data Expired, Unable to test Payment Account Validation API

The Response Header X-CORRELATION-ID is
1608977026_116_1199610050_l73c018_VDP_WS
X-APP-STATUS: 400
Full stack web Developer
API_Products
Visa Developer Support Specialist

Re: Test Data Expired, Unable to test Payment Account Validation API

Hey @Russel,

 

I'll take a look and get back soon. 




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.

API_Products
Visa Developer Support Specialist

Re: Test Data Expired, Unable to test Payment Account Validation API

Hey @Russel,

 

I conducted a sandbox test and changed the cardExpiryDate to any date that is 2021-01 or later. For example, please see the request, response and response header below. I got a successful 200 OK. Please test again and share your results with us.

 

Request:

{
"systemsTraceAuditNumber": "743728",
"cardCvv2Value": "672",
"primaryAccountNumber": "4957030005123304",
"retrievalReferenceNumber": "015221743728",
"cardExpiryDate": "2021-01"
}

 

Response:

{
"cvv2ResultCode": "P",
"transactionIdentifier": 158542506766602,
"actionCode": "25",
"addressVerificationResults": "I",
"responseCode": "5"
}

 

Response Header:

Status Code: 200 OK
Server : nginx
Date : Wed, 06 Jan 2021 01:11:19 GMT
Content-Type : application/json;charset=UTF-8
Content-Length : 705
Connection : keep-alive
X-SERVED-BY : l55c017
X-CORRELATION-ID : 1609895478_698_394974019_l55c017_VDP_WS
X-APP-STATUS : 200
X-APP-STATUS : 200
X-Backside-Transport : OK OK,OK OK
X-Global-Transaction-ID : 1adcbd165ff50e364dfe67bd
X-Frame-Options : SAMEORIGIN
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=2592000;includeSubdomains
Cache-Control : no-cache, no-store, must-revalidate
Pragma : no-cache
Expires : -1
encrypted : true
Content-Language : en-US
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=15768000;includeSubdomains;always

 

VDP Playground VPP cardvalidation 200OK cardExpiryDate.png




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.

Russel
Helper

Re: Test Data Expired, Unable to test Payment Account Validation API

Thank you, it works correctly now.

 

Regards.

 

Russel M.

Full stack web Developer