Study Guide
Table Of Contents
- PayPal Certified Developer Program Study Guide
- Contents
- List of Tables
- Online Payment Processing
- Internet Security and Fraud Prevention
- Why Every Business Should Be Concerned About Internet Fraud
- Liability for Internet Fraud
- Internet Fraud: What It Is and How It Happens
- Who Is at Risk for Online Fraud
- Reducing Exposure to Fraud
- What Banks and Card Associations Are Doing to Prevent Online Credit Card Fraud
- What PayPal Is Doing to Protect Your Business Against Fraud
- Disclosure and Compliance
- PayPal Fraud Protection Services
- Review Questions
- Getting Started With Account Setup
- API Credentials
- Name-Value Pair (NVP) API
- Express Checkout
- Direct Payment API
- Transactions
- Sandbox Testing
- Answers to Review Questions
- General Reference Information
- Glossary
- Index
Sandbox Testing
Testing Error Conditions
9
132 March 2008 PayPal Certified Developer Program Study Guide
N OTE: If the trigger value is not a valid error code for the API being tested, positive testing
occurs for the request, which might result in another error occurring.
Negative Testing Using an Amount-Related Trigger Field
The following example sets up testing for error 10623 for DoAuthorization, in which the
error code is specified in the AMT field:
METHOD=DoAuthorization
&TRANSACTIONID=O-1GU0288989807143B&
AMT=106.23&
TRANSACTIONENTITY=Order&
VERSION=3.3&
USER=username&
PWD=password&
SIGNATURE=signature
The request invokes the following response:
TIMESTAMP=2007%2d04%2d04T03%3a10%3a19Z&
CORRELATIONID=447d121150529&
ACK=Failure&
L_ERRORCODE0=10623&
L_SHORTMESSAGE0=Maximum%20number%20of%20authorization%20allowed%20for%20the
%20order%20is%20reached%2e&
L_LONGMESSAGE0=Maximum%20number%20of%20authorization%20allowed%20for%20the%
20order%20is%20reached%2e&
L_SEVERITYCODE0=Error&
VERSION=3%3e400000&
BUILD=1%2e0006
BAUpdate
Version 2.4
MPID MpID Specify the error code to trigger as all
digits in the field; e.g., an ID of 10755
triggers PayPal API error code 10755.
BAUpdate
Version 3.0
REFERENCEID ReferenceID Specify the error code to trigger as all
digits in the field; e.g., an ID of 10755
triggers PayPal API error code 10755.
AddressVerify — — Not supported for negative testing.
T
ABLE 9.2 API Fields That Trigger Error Conditions (Continued)
API Name NVP Field Name SOAP Element Description