DoDirectPayment API Operation (NVP)
Last updated: Sept 18th, 6:01pm
Processes a credit card payment.
Only available to: Website Payments Pro accounts
DoDirectPayment Request Message
DoDirectPayment Request Fields
Field | Description |
---|---|
METHOD |
(Required) Must be DoDirectPayment. |
PAYMENTACTION |
(Optional) How you want to obtain payment. Value is:
Character length and limit: Up to 13 single-byte alphabetic characters |
IPADDRESS |
(Required) IP address of the buyer's browser. Character length and limitations: 15 single-byte characters, including periods, for example, 255.255.255.255 |
RETURNFMFDETAILS |
(Optional) Flag to indicate whether you want the results returned by Fraud Management Filters. By default, you do not receive this information. Value is:
|
SOFTDESCRIPTOR |
(Optional) Information that is usually displayed in the account holder's statement, for example, <Your-Not-For-Profit> <State> , <Your-Not-For-Profit> <Branch-Name> , <Your-Website> dues or <Your-Website> list fee .Character length and limitations: 23 alphanumeric characters, can include the special characters dash ( - ) and dot (. ) only. Asterisks (* ) are NOT permitted. If it includes a space character ( ), enclose the "<Soft-Descriptor>" value in double quotes. |
SOFTDESCRIPTORCITY |
(Optional) A unique phone number, email address or URL, which is displayed on the account holder's statement. PayPal recommends passing a toll-free phone number because, typically, this is the easiest way for a buyer to contact the seller in the case of an inquiry. Character length and limitations: 13 characters including special characters, such as, space, ! , " , # , $ , % , & , ' , (\`, \`) , + , - ,* , / , : , ; , <\`, \`=\`, \`> , ? , @ , comma and period.If it includes the space character ( ), enclose the "<Soft-Descriptor-City>" value in double quotes. |
Credit Card Details Fields
Payer Information Fields
Field | Description |
---|---|
EMAIL |
(Optional) Email address of buyer. Character length and limitations: 127 single-byte characters |
FIRSTNAME |
(Optional) Buyer's first name. (Required) when certain FMF settings are enabled. Character length and limitations: 64 double-byte characters |
LASTNAME |
(Optional) Buyer's last name. (Required) when certain FMF settings are enabled. Character length and limitations: 64 double-byte characters |
Address Fields
Field | Description |
---|---|
STREET |
(Required) First street address. Character length and limitations: 100 single-byte characters |
STREET2 |
(Optional) Second street address. Character length and limitations: 100 single-byte characters |
CITY |
(Required) Name of city. Character length and limitations: 40 single-byte characters |
STATE |
(Required) State or province. Character length and limitations: 40 single-byte characters |
COUNTRYCODE |
(Required) Country code. Character length and limitations: 2 single-byte characters |
ZIP |
(Required) U.S. ZIP code or other country-specific postal code. Character length and limitations: 20 single-byte characters |
Payment Details Fields
Field | Description |
---|---|
AMT |
(Required) The total cost of the transaction to the buyer. If shipping cost and tax charges are known, include them in this value. If not, this value should be the current subtotal of the order. If the transaction includes one or more one-time purchases, this field must be equal to the sum of the purchases. This field must be set to a value greater than Character length and limitations: Value is a positive number (or |
CURRENCYCODE |
(Optional) A 3-character currency code (default is USD). |
ITEMAMT |
(Optional) Sum of cost of all items in this order. Character length and limitations: Value is a positive number (or |
SHIPPINGAMT |
(Optional) Total shipping costs for this order. Character length and limitations: Value is a positive number (or |
INSURANCEAMT |
(Optional) Total shipping insurance costs for this order. The value must be a non-negative currency amount or Character length and limitations: Value is a positive number (or |
SHIPDISCAMT |
(Optional) Shipping discount for this order, specified as a negative number. Character length and limitations: Value is a negative number. It includes no currency symbol. Most currencies require 2 decimal places. The decimal separator must be a period ( |
HANDLINGAMT |
(Optional) Total handling costs for this order. Character length and limitations: Value is a positive number (or |
TAXAMT |
(Optional) Sum of tax for all items in this order. Character length and limitations: Value is a positive number (or |
DESC |
(Optional) Description of items the buyer is purchasing. Character length and limitations: 127 single-byte alphanumeric characters |
CUSTOM |
(Optional) A free-form field for your own use. Character length and limitations: 256 single-byte alphanumeric characters |
INVNUM |
(Optional) Your own invoice or tracking number. Character length and limitations: 256 single-byte alphanumeric characters |
BUTTONSOURCE |
(Optional) An identification code for use by third-party applications to identify transactions. Character length and limitations: 32 single-byte alphanumeric characters |
NOTIFYURL |
(Optional) Your URL for receiving Instant Payment Notification (IPN) about this transaction. If you do not specify this value in the request, the notification URL from your Merchant Profile is used, if one exists. |
RECURRING |
ns:RecurringFlagType (Deprecated, Optional) Flag to indicate a recurring transaction. It is one of the following values:
Note To pass |
BUCKETCATEGORYTYPE |
(Optional) The category of a payment. Value is:
|
PAYMENTINITIATOR |
|
PAYMENTCATEGORY |
|
CARDONFILE |
|
PREVIOUSTRANSACTIONREFERENCE |
PayPal transaction ID previously used to charge the buyer. Shows payment processors that you have established a contract with the buyer. |
PREVIOUSNETWORKTRANSACTIONREFERENCE |
|
Payment Details Item Fields
Field | Description |
---|---|
L_NAMEn |
(Optional) Item name. These parameters must be ordered sequentially beginning with 0 (for example L_NAME0 , L_NAME1 ).Character length and limitations: 127 single-byte characters |
L_DESCn |
(Optional) Item description. Character length and limitations: 127 single-byte characters |
L_AMTn |
(Optional) Cost of item. These parameters must be ordered sequentially beginning with 0 (for example Note If you specify a value for Character length and limitations: @items['/shared/cl_currencylimit_ppp/'].compiled_content |
L_NUMBERn |
(Optional) Item number. These parameters must be ordered sequentially beginning with 0 (for example L_NUMBER0 , L_NUMBER1 ).Character length and limitations: 127 single-byte characters |
L_QTYn |
(Optional) Item quantity. These parameters must be ordered sequentially beginning with 0 (for example L_QTY0 , L_QTY1 ).Character length and limitations: Any positive integer |
L_TAXAMTn |
(Optional) Item sales tax. These parameters must be ordered sequentially beginning with 0 (for example Character length and limitations: Value is either a positive number or, for card verifications or zero amount authorizations, |
Ebay Item Payment Details Item Fields
Field | Description |
---|---|
L_EBAYITEMNUMBERn |
(Optional) Auction item number. These parameters must be ordered sequentially beginning with 0 (for example L_EBAYITEMNUMBER0 , L_EBAYITEMNUMBER1 ).Character length: 765 single-byte characters |
L_EBAYITEMAUCTIONTXNIDn |
(Optional) Auction transaction identification number. These parameters must be ordered sequentially beginning with 0 (for example L_EBAYITEMAUCTIONTXNID0 , L_EBAYITEMAUCTIONTXNID1 ).Character length: 255 single-byte characters |
L_EBAYITEMORDERIDn |
(Optional) Auction order identification number. These parameters must be ordered sequentially beginning with 0 (for example L_EBAYITEMORDERID0 , L_EBAYITEMORDERID1 ).Character length: 64 single-byte characters |
Ship To Address Fields
Field | Description |
---|---|
SHIPTONAME |
Person's name associated with this shipping address. It is required if using a shipping address. Character length and limitations: 32 double-byte characters |
SHIPTOSTREET |
First street address. It is required if using a shipping address. Character length and limitations: 100 single-byte characters |
SHIPTOSTREET2 |
(Optional) Second street address. Character length and limitations: 100 single-byte characters |
SHIPTOCITY |
Name of city. It is required if using a shipping address. Character length and limitations: 40 single-byte characters |
SHIPTOSTATE |
State or province. Required for transactions only if the address is in one of the following countries: Argentina, Brazil, Canada, China, Indonesia, India, Japan, Mexico, Thailand or USA. See the list of PayPal state codes. Character length and limitations: 40 single-byte characters |
SHIPTOZIP |
U.S. ZIP code or other country-specific postal code. It is required if using a U.S. shipping address; may be required for other countries. Character length and limitations: 20 single-byte characters |
SHIPTOCOUNTRY |
Country code. It is required if using a shipping address. Character length and limitations: 2 single-byte characters |
SHIPTOPHONENUM |
(Optional) Phone number. Character length and limitations: 20 single-byte characters |
DoDirectPayment Response Message
DoDirectPayment Response Fields
Field | Description |
---|---|
TRANSACTIONID |
(Optional) Unique transaction ID of the payment. Character length and limitations: 17 characters. Orders transactions have 19 characters.
|
AMT |
This value is the amount of the payment as specified in the DoDirectPaymentRequest request. |
AVSCODE |
Address Verification System response code resulting from the AVS verification. See AVS Response Codes for details. Character length and limitations: One single-byte alphanumeric character |
CVV2MATCH |
Result of the CVV2 verification. See CVV2 Response Codes for details. |
Transaction is pending the Interchange Plus (IC+) processing. For merchants who opt in to IC+, PayPal waits to receive funding and the fee amount from the bank before settling the transaction to the merchant's PayPal account. While the transaction is awaiting funding, the value returned in this field is: |
|
L_FMFfilterIDn |
Filter ID, including the filter type (PENDING , REPORT , or DENY) , the filter ID, and the entry number, n, starting from 0. Filter ID is one of the following values:
|
L_FMFfilterNAMEn |
Filter name, including the filter type, (PENDING , REPORT , or DENY ), the filter NAME, and the entry number, n, starting from 0. |
PAYMENTADVICECODE |
A processor response code typically returned on declined Website Payments Pro recurring transactions. Its purpose is to provide merchants with information and specific instructions on how to handle the decline. It is the merchant's responsibility to follow the instructions provided in order to avoid chargebacks. For details on the meanings of these codes, see AVS, CVV2, and payment advice response codes. Developers or partners who use reference transactions to provide recurring payment or subscription support for Website Payments Pro merchants (outside of PayPal Recurring Payments) are responsible for stopping the subscription and should not try again with the same card if the Payment Advice |
ThreeDSecure Response Fields
Field | Description |
---|---|
VPAS |
Visa Payer Authentication Service status. The value indicates whether Verified by Visa confirms that the information received is acceptable. It is returned only for Verified by Visa transactions. Authentication:
Attempted authentication:
No liability shift: Blank, 0, or B |
ECISUBMITTED3DS |
Electronic Commerce Indicator (ECI) that PayPal submitted with the payment authorization request. This might not be the same value received from the merchant. In rare cases, PayPal is required to use a different ECI for authorization based on the full set of 3-D Secure values provided from the cmpi_authenticate request.Mastercard:
Visa:
|