nabeel-legend
New Contributor

payment account validation

{

  • "errorMessage": "API Validation Error: 3001. Expiration Date has invalid content or has expired."

}

there is an error when I call the card validation (payment account validation API).

7 REPLIES 7
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: payment account validation

Hi @nabeel-legend,

 

Sorry to hear that the PAV API is not working. To further investigate, can you please provide the following information:

  1. End Point URL
  2. Request Header
  3. Request Body
  4. Response Header (include the x-correlation-id)
  5. Response Body

Thanks!


Best,
Stacey

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

Re: payment account validation

 

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


{"acquirerCountryCode": "840","acquiringBin": "408999","addressVerificationResults": {"postalCode": "T4B 3G5","street": "801 Metro Center Blv"},"cardAcceptor": {"address": {"city": "San Francisco","country": "USA","county": "CA","state": "CA","zipCode": "94404"},"idCode": "111111","name": "rohan","terminalId": "123"},"cardCvv2Value": "672","cardExpiryDate": "2018-06","primaryAccountNumber": "4957030000313108","retrievalReferenceNumber": "015221743720","systemsTraceAuditNumber": "743720"}


Exception thrown: 'System.Net.WebException' in System.dll
card validation Test
Response Status:
BadRequest
Response Headers:
Connection: keep-alive
X-SERVED-BY: l73c012
X-CORRELATION-ID: 1606199796_196_2040485995_l73c012_VDP_WS
X-APP-STATUS: 400,400
X-Backside-Transport: FAIL FAIL,FAIL FAIL
X-Application-Error-Code: 3001
X-Global-Transaction-ID: 69536f0d5fbca9f4fa2fed21
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=2592000;includeSubdomains
Pragma: no-cache
Content-Language: en-US
X-Cnection: close,close
Content-Length: 104
Cache-Control: no-cache, no-store, must-revalidate
Content-Type: application/json;charset=UTF-8
Date: Tue, 24 Nov 2020 06:36:36 GMT
Expires: -1
Server: nginx


Response Body:
{
"errorMessage" : "API Validation Error: 3001. Expiration Date has invalid content or has expired."
}

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: payment account validation

Hi @nabeel-legend,

 

I noticed that the "cardExpiryDate": "2018-06" is an expired date, thus the error. Please try a date in the future.

For example:

"cardExpiryDate": "2022-06"


Best,
Stacey

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

Re: payment account validation

Response Body:
{"transactionIdentifier":108649254189048,"actionCode":"25","responseCode":"5","addressVerificationResults":"I","cvv2ResultCode":"P"}

when i change the expirydate 2022-06 and run the code, the response body is working but the actioncode="25" which means Unable to locate record in file why? correct the data in payload.

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: payment account validation

Hi @nabeel-legend,

 

I think the card expiry dates in the Test Data all have 10/2020 and expired. I have reached out to our PAV product team for a new set of Test Data and will share that as soon as I have them. Thanks.


Best,
Stacey

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

Re: payment account validation

I waiting for a new set of Test Data.

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: payment account validation

Hi @nabeel-legend,

 

Thank you for your patience. I am happy to share the below test data. Please try it and let us know how it goes.

{
"systemsTraceAuditNumber": "743720",
"cardCvv2Value": "672",
"cardAcceptor": {
"address": {
"country": "USA",
"zipCode": "94404",
"city": "foster city",
"county": "CA",
"state": "CA"
},
"idCode": "111111",
"name": "John",
"terminalId": "123"
},
"primaryAccountNumber": "4957*3108",
"retrievalReferenceNumber": "015221743720",
"addressVerificationResults": {
"street": "2881 Main Street Sw",
"postalCode": "T4B 3G5"
},
"cardExpiryDate": "2040-10"
}

 

 

Please replace * with 03000031

 


Best,
Stacey

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