ResponseCVVResult Property
Contains the returned CVV2 result code if it was requested.
Syntax
retail.getResponseCVVResult([callback])
Default Value
""
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getResponseCVVResult([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setResponseCVVResult([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
Contains the returned CVV2 result code if it was requested. This property contains the host returned CVV2 result code (if CVV data was sent in the request). The following is a list of current result codes:
M | CVV2 Match. |
N | CVV2 No Match. |
P | Not Processed. |
S | Merchant has indicated that CVV2 is not present on card. |
U | Issuer not certified and/or has not provided Visa encryption keys. |
Note: The above table does not apply to the HSBC, Adyen or Barclay gateways.
For HSBC, the property will contain:
0 | Card type does not support CVM |
1 | CVM match |
2 | CVM did not match issuer value |
3 | CVM was not processed |
4 | CVM should be on the card but cardholder indicated otherwise |
5 | CVM not supported by issuer |
6 | Not valid |
7 | No response from server |
For Adyen, the property will contain:
0 | Unknown |
1 | Matches |
2 | Does not match |
3 | Not checked |
4 | No CVC/CVV provided, but was required |
5 | Issuer not certified for CVC/CVV |
6 | No CVC/CVV provided |
For Barclay, the property will contain:
0,1 | CVM was not processed |
2 | CVM match |
4 | CVM does not match issuer value |
Unknown | CVM invalid or missing |
Blank | No response from server |
For DataCash, the property will contain the following possible values (of which correspond to both AVS and CVV checks):
NO DATA MATCHES | |
ADDRESS MATCH ONLY | |
SECURITY CODE MATCH ONLY | |
ALL MATCH | |
DATA NOT CHECKED |
This property is read-only and not available at design time.
Data Type
String