Study Guide

Table Of Contents
Sandbox Testing
Testing Error Conditions
9
130 March 2008 PayPal Certified Developer Program Study Guide
To test Virtual Terminal, you must set risk controls for address verification and credit-card
security, respectively, to Decline or Accept and Report depending on the kind of negative
testing you want to perform. If you do not set the appropriate risk controls, default processing
occurs, which is to accept the transaction.
Severe error conditions, such as bad arguments or invalid login, preempt negative testing
because the error cannot be handled by negative or positive testing. In these cases, the error
condition for positive testing is raised, regardless of whether the account was enabled for
negative testing.
API Testing
For APIs, you trigger an error condition by setting a field to the value of the error you want to
trigger. The value you specify depends on the kind of field:
z For amount-related fields, specify a value as a number with two digits to the right of the
decimal point; for example, 107.55 triggers PayPal API error 10755.
z For other kinds of fields, specify the actual PayPal API error; for example, 10755 triggers
PP API error 10755.
Table 9.2 identifies the API, the NVP name or SOAP element of the field that triggers the
error, and a description of how to set the value in the field.
TABLE 9.2 API Fields That Trigger Error Conditions
API Name NVP Field Name SOAP Element Description
RefundTransaction AMT Amount Specify the error code to trigger as all
digits in a number with two digits to the
right of the decimal point; e.g., 107.55
triggers PayPal API error code 10755.
GetTransaction
Details
TRANSACTIONID TransactionID Specify the error code to trigger as all
digits in the field; e.g., 10755 triggers
PayPal API error code 10755.
TransactionSearch INVNUM InvoiceID Specify the error code to trigger as all
digits in the field; e.g., 10755 triggers
PayPal API error code 10755.