2012

Table Of Contents
Testing Error Conditions
API Testing
7
46 April 2012 Sandbox User Guide
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:
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 PP API error 10755
for other kinds of fields, specify the actual PP API error; for example, 10755 triggers PP
API error 10755
The following table 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:
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; for
example, 107.55 triggers PP API error
code 10755.
GetTransaction
Details
TRANSACTIONID TransactionID Specify the error code to trigger as all
digits in the field; for example, an ID of
10755 triggers PP API error code
10755.
TransactionSearch INVNUM InvoiceID Specify the error code to trigger as all
digits in the field; for example, an ID of
10755 triggers PP API error code
10755.
DoDirectPayment AMT OrderTotal Specify the error code to trigger as all
digits in a number with two digits to
the right of the decimal point; for
example, 107.55 triggers PP API error
code 10755.
SetExpressCheckout MAXAMT MaxAmount Specify the error code to trigger as all
digits in a number with two digits to
the right of the decimal point; for
example, 107.55 triggers PP API error
code 10755.
GetExpressCheckout
Details
TOKEN Token Specify the error code to trigger as all
digits in the field; for example, a token
value of 10755 triggers PP API error
code 10755.