ResponseAVS Property
The Address Verification System response code.
Syntax
directpayment.getResponseAVS([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 getResponseAVS([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 setResponseAVS([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
The Address Verification System response code.
This one character property contains the Address Verification System (AVS) result code. This is always returned in the server response. The AVS service is used to help detect fraud. While PayPal may authorize a payment, it is up to the merchant to check the ResponseAVS and decide whether or not to honor the transaction.
The valid AVS codes are listed in the table below.
AVS Code | Meaning | Matched Details |
A | Address | Address Only (no ZIP) |
B | International "A" | Address only (no ZIP) |
C | International "N" | None |
D | International "X" | Address and Postal Code |
E | Not allowed for MOTO (Internet/Phone) transactions | Not applicable |
F | UK-specific "X" | Address and Postal Code |
G | Global Unavailable | Not applicable |
I | International Unavailable | Not applicable |
N | No | None |
P | Postal(International "Z") | Postal Code only (no Address) |
R | Retry | Not applicable |
S | Service not Supported | Not applicable |
U | Unavailable | Not applicable |
W | Whole ZIP | Nine-digit ZIP code (no Address) |
X | Exact match | Address and nine-digit ZIP code |
Y | Yes | Address and five-digit ZIP |
Z | ZIP | Five-digit ZIP code (no Address) |
All others | Error | Not applicable |
This property is read-only.
Data Type
String