2012

Table Of Contents
Testing Error Conditions
Testing Using AVS Codes
7
50 April 2012 Sandbox User Guide
TIMESTAMP=2007%2d04%2d04T03%3a10%3a23Z&
CORRELATIONID=81ccc18eaec49& ACK=Failure& L_ERRORCODE0=10009&
L_SHORTMESSAGE0=Transaction%20refused&
L_LONGMESSAGE0=You%20can%20not%20refund%20this%20type%20of%20transaction&
L_SEVERITYCODE0=Error& L_ERRORCODE1=10009&
L_SHORTMESSAGE1=Transaction%20refused&
L_LONGMESSAGE1=You%20are%20over%20the%20time%20limit%20to%20perform%20a%20r
efund%20on%20this%20transaction& L_SEVERITYCODE1=Error&
L_ERRORCODE2=10009& L_SHORTMESSAGE2=Transaction%20refused&
L_LONGMESSAGE2=Account%20is%20restricted& L_SEVERITYCODE2=Error& ...
L_ERRORCODE13=10009& L_SHORTMESSAGE13=Transaction%20refused&
L_LONGMESSAGE13=The%20partial%20refund%20amount%20must%20be%20less%20than%2
0or%20equal%20to%20the%20remaining%20amount& L_SEVERITYCODE13=Error&
VERSION=2%2e400000&
BUILD=1%2e0006
Testing Using AVS Codes
You can simulate address verification by triggering an AVS error code when you call
DoDirectPayment or use Virtual Terminal. To specify a code, place AVS_
code in the NVP
STREET field or the Street1 SOAP element when you call DoDirectPayment, where
code is
an AVS code, or enter AVS_
code in Address Line 1 when using Virtual Terminal. For
example, if you set 123 AVS_A Street in the NVP STREET field, AVS code A is set.
NOTE: AVS_code is case sensitive; all characters must be uppercase. For example, AVS_A is
valid trigger; avs_a is not.
The following table identifies valid AVS codes, corresponding triggers, and a description of
each error condition:
AVS Code Trigger Description of Error
A AVS_A The address matches but no zip code is specified; results in an error if the “Partial
Address Match” risk control is set.
B AVS_B The international address matches but no zip code is specified; results in an error if the
“Partial Address Match” risk control is set.
D AVS_D Exact match (no error). The international address and postal code matches.
F AVS_F Exact match (no error). The UK address and postal code matches.
P AVS_P The postal code matches but no address is specified; results in an error if the “Partial
Address Match” risk control is set.
W AVS_W The 9-digit zip code matches but no address is specified; results in an error if the “Partial
Address Match” risk control is set.
X AVS_X Exact match (no error). The complete address and 9-digit zip code matches.