ResponseAVSResult Property
Contains the Address Verification System result code.
Syntax
ptechhotel.getResponseAVSResult([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 getResponseAVSResult([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 setResponseAVSResult([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 Address Verification System result code. This one character property contains the Address Verification System (AVS) result code. An AVS result code can provide additional information concerning the authentication of a particular transaction for which cardholder address verification was requested. An AVS result code of "0" will be returned in the response message when no address verification has been requested. The value returned should be stored and submitted as part of the batch settlement. The valid AVS codes are listed in the table below. Please see the ResponseCode property for a more detailed list of ResponseCode and ResponseAVSResult code combinations.
Valid AVS Codes:
Code | Description |
0 | Address verification was not requested. |
A | CustomerAddress matches, CustomerZip does not. |
E | AVS error / Ineligible (not a mail/phone order). |
G | Ver Unavailable - Non-US Issuer does not participate. |
I | Ver Unavailable - Address information not verified for international transaction. |
M | Exact Match - CustomerAddress match for international transaction. |
N | No match on CustomerAddress or CustomerZip. |
R | Retry - Issuer system unavailable. |
S | Service not supported by issuer. |
U | Address information is unavailable. |
W | Nine digit CustomerZip matches, CustomerAddress does not. |
X | Exact AVS match, nine digit CustomerZip. |
Y | Exact AVS match, five digit CustomerZip. |
Z | Five digit CustomerZip matches, CustomerAddress does not. |
If supporting international transactions, six additional International Address Verification Service (IAVS) codes are introduced:
B | Street address match for international transaction. Postal code not verified due to incompatible formats (acquirer sent both street address and postal code). |
C | Street address and postal code not verified for international transaction due to incompatible formats (acquirer sent both street address and postal code). |
D | Street addresses and postal codes match for international transaction. |
I | Address information not verified for international transaction. |
M | Street addresses and postal codes match for international transaction. |
P | Postal codes match for international transaction. Street address not verified due to incompatible formats (acquirer sent both street address and postal code). |
This property is read-only and not available at design time.
Data Type
String