PayPal Integrator V5 - Online Help
PayPal Integrator V5
Questions / Feedback?

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 CodeMeaningMatched Details
AAddressAddress Only (no ZIP)
BInternational "A"Address only (no ZIP)
CInternational "N"None
DInternational "X"Address and Postal Code
ENot allowed for MOTO (Internet/Phone) transactionsNot applicable
FUK-specific "X"Address and Postal Code
GGlobal UnavailableNot applicable
IInternational UnavailableNot applicable
NNoNone
PPostal(International "Z")Postal Code only (no Address)
RRetryNot applicable
SService not SupportedNot applicable
UUnavailableNot applicable
WWhole ZIPNine-digit ZIP code (no Address)
XExact matchAddress and nine-digit ZIP code
YYesAddress and five-digit ZIP
ZZIPFive-digit ZIP code (no Address)
All othersErrorNot applicable

This property is read-only.

Data Type

String

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 5.0.6240.0