Study Guide

Table Of Contents
Direct Payment API
Direct Payment API Reference Information
7
80 March 2008 PayPal Certified Developer Program Study Guide
Direct Payment API Reference Information
The following sections contain reference information about the parameters and fields used in
the various requests and responses involved in PayPal Direct Payment.
Further reference information is available in PayPal Name-Value Pair API Developer Guide
and Reference.
DoDirectPayment Request
Use a DoDirectPayment request to charge a credit card or to authorize a credit card for later
capture.
TABLE 7.1 DoDirectPayment Request Parameters
Parameter Description Required?
METHOD Name of the API: DoDirectPayment Yes
PAYMENTACTION How the merchant wants to obtain payment:
z Authorization indicates this payment is a basic authorization
subject to settlement with PayPal Authorization & Capture.
z Sale indicates this is a final sale for which the merchant is
requesting payment.
Character length and limit: Up to 13 single-byte alphabetic characters
Yes
IPADDRESS IP address of the payers browser.
PayPal records this IP address as a means of detecting possible fraud.
Character length and limitations: 15 single-byte characters, including
periods (for example, 255.255.255.25).
Allowable values: Any valid Internet Protocol address.
Yes
AMT Total of the order, including shipping, handling, and tax.
Limitations: Must not exceed $10,000 USD in any currency. No
currency symbol. Must have two decimal places, decimal separator must
be a period (.), and the optional thousands separator must be a comma
(,).
Yes
CREDITCARDTYPE Type of credit card.
Character length and limitations: Up to 10 single-byte alphabetic
characters.
Allowable values:
z Visa
z MasterCard
z Discover
z Amex
Yes