Study Guide

Table Of Contents
PayPal Certified Developer Program Study Guide March 2008 133
Sandbox Testing
Testing Error Conditions
9
Negative Testing Using a Non-Amount Trigger Field
The following example sets up testing for error 10603 for DoVoid, in which the error code is
specified in the AUTHORIZATIONID field:
METHOD=DoVoid&
AUTHORIZATIONID=10603&
VERSION=3.3&
USER=username&
PWD=password&
SIGNATURE=signature
The request invokes the following response:
TIMESTAMP=2007%2d04%2d04T03%3a10%3a22Z&
CORRELATIONID=51b0c5054dee6&
ACK=Failure&
L_ERRORCODE0=10603&
L_SHORTMESSAGE0=The%20buyer%20is%20restricted%2e&
L_LONGMESSAGE0=The%20buyer%20account%20is%20restricted%2e&
L_SEVERITYCODE0=Error
&VERSION=3%3e400000&
BUILD=1%2e0006
Negative Testing With Multiple Messages
The following example sets up testing for error 10009 for RefundTransaction, which
returns 14 possible error message sets:
METHOD=RefundTransaction&
TRANSACTIONID=asdf&
REFUNDTYPE=Partial&
AMT=100.09&
VERSION=3.3&
USER=username&
PWD=password&
SIGNATURE=signature
The request invokes the following response: