Study Guide

Table Of Contents
Sandbox Testing
Testing Error Conditions
9
134 March 2008 PayPal Certified Developer Program Study 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=3%3e400000&
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
SHIPTOSTREET field or the Street1 SOAP element when you call DoDirectPayment,
where
code is an AVS code. Alternately, enter AVS_code in Address Line 1 when using
Virtual Terminal. For example, if you set 123 AVS_A Street in the NVP SHIPTOSTREET
field, AVS code A is set.
N OTE: AVS_code is case sensitive; all characters must be uppercase. For example, AVS_A is a
valid trigger, but avs_a is not.
Table 9.3 identifies valid AVS codes, corresponding triggers, and description of the error
conditions.
TABLE 9.3 AVS Error Conditions and Triggers
AVS Code Trigger Description of Error
A AVS_A The address matches, but no zip code is specified. This 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. This 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 match.