DoDirectPayment API Operation (SOAP)

API

Last updated: Sept 18th, 6:04pm

Processes a credit card payment.

Only available to: Website Payments Pro

DoDirectPayment Request Message

DoDirectPayment Request Fields

Field Description

PaymentAction

ebl:PaymentActionCodeType

(Optional) How you want to obtain payment. Value is:

  • Sale – This is a final sale for which you are requesting payment (default).
  • Authorization – Authorization can be a basic authorization subject to settlement with the DoCapture API operation or a manual capture. Authorization can also be a zero amount authorization used for card verifications.

Character length and limit: Up to 13 single-byte alphabetic characters

CreditCard

ebl:CreditCardDetailsType

(Required) Information about the credit card to be charged.

PaymentDetails

ebl:PaymentDetailsType

(Required) Information about the credit card to be charged.

IPAddress

xs:string

(Required) IP address of the buyer's browser.

Character length and limitations: 15 single-byte characters, including periods, for example, 255.255.255.255

MerchantSessionId

xs:string

(Optional) Your customer session identification token.

Character length and limitations: 64 single-byte numeric characters

ReturnFMFDetails

xs:int

(Optional) Flag to indicate whether you want the results returned by Fraud Management Filters. By default, you do not receive this information. Value is:

  • 0 — Do not receive FMF details (default).

  • 1 — Receive FMF details.

SoftDescriptor

xs:string

(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

xs:string

(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.

CreditCardDetailsType Fields

Field Description

CreditCardType

ebl:CreditCardType

(Optional) Type of credit card. For UK, only Maestro, Mastercard, and Visa are allowable. For Canada, only Mastercard and Visa are allowable, and Interac debit cards are not supported. Value is:

  • Visa
  • Mastercard
  • Discover
  • Amex
  • JCB
  • Maestro: See note.

Character length and limitations: Up to 10 single-byte alphabetic characters

CreditCardNumber

xs:string

(Required) Credit card number.

Character length and limitations: Numeric characters only with no spaces or punctuation. The string must conform with modulo and length required by each credit card type.

ExpMonth

xs:int

(Required) Credit card expiration month.

Character length and limitations: 2 single-byte numeric characters, including leading zero

ExpYear

xs:int

(Required) Credit card expiration year.

Character length and limitations: 4 single-byte numeric characters

CVV2

xs:string

Card Verification Value, version 2. Your Merchant Account settings determine whether this field is required. To comply with credit card processing regulations, you must not store this value after a transaction has been completed.

Character length and limitations: For Visa, Mastercard, and Discover, the value is exactly 3 digits. For American Express, the value is exactly 4 digits.

CardOwner

ns:PayerInfoType

(Required) Details about the owner of the credit card.

StartMonth

xs:int

(Optional) Month that Maestro card was issued.

Character length and limitations: 2-digit, zero-filled if necessary

StartYear

xs:int

(Optional) Year that Maestro card was issued.

Character length and limitations: 4 digits

IssueNumber

xs:string

(Optional) Issue number of Maestro card.

Character length and limitations: 2 numeric digits maximum

PayerInfoType Fields

Field Description

Payer

ebl:EmailAddressType

(Required) Email address of buyer.

Character length and limitations: 127 single-byte characters

PayerID

ebl:UserIDType

(Optional) Unique PayPal Customer Account identification number.

Character length and limitations: 13 single-byte alphanumeric characters

PayerStatus

ebl:PayPalUser StatusCodeType

(Optional) Status of buyer. Value is:

  • verified

  • unverified

Character length and limitations: 10 single-byte alphabetic characters

PayerName

ebl:PersonNameType

(Optional) First and last name of buyer.

PayerCountry

ebl:CountryCodeType

(Optional) Buyer's country of residence in the form of ISO standard 3166 two-character country codes.

Character length and limitations: 2 single-byte characters

PayerBusiness

xs:string

(Optional) Buyer's business name.

Character length and limitations: 127 single-byte characters

Address

xs:string

(Optional) Buyer's shipping address information.

PayerNameType Fields

Field Description

Salutation

xs:string

(Optional) Buyer's salutation.

Character length and limitations: 20 single-byte characters

FirstName

ebl:PersonNameType

(Optional) Buyer's first name.

(Required) when certain FMF settings are enabled.

Character length and limitations: 64 double-byte characters

MiddleName

ebl:NameUser

(Optional) Buyer's middle name.

Character length and limitations: 64 double-byte characters

LastName

ebl:NameType

(Optional) Buyer's last name.

(Required) when certain FMF settings are enabled.

Character length and limitations: 64 double-byte characters

Suffix

ebl:SuffixType

(Optional) Buyer's suffix.

Character length and limitations: 12 single-byte characters

AddressType Fields

Field Description

Street1

xs:string

(Required) First street address.

Character length and limitations: 100 single-byte characters

Street2

xs:string

(Optional) Second street address.

Character length and limitations: 100 single-byte characters

CityName

xs:string

(Required) Name of city.

Character length and limitations: 40 single-byte characters

StateOrProvince

xs:string

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

Country

ebl:CountryCodeType

(Required) Country code.

Character length and limitations: 2 single-byte characters

PostalCode

xs:string

(Required) U.S. ZIP code or other country-specific postal code.

Character length and limitations: 20 single-byte characters

PaymentDetailsType Fields

Field Description

OrderTotal

ebl:BasicAmountType

(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 0.

Character length and limitations: Value is a positive number (or 0 in the case of Card Verifications or Zero amount Auths). The amount cannot exceed nine (9) digits in the SOAP request and response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places; the decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. See the currency codes page for details.

ItemTotal

ebl:BasicAmountType

(Optional) Sum of cost of all items in this order.

Character length and limitations: Value is a positive number (or 0 in the case of Card Verifications or Zero amount Auths). The amount cannot exceed nine (9) digits in the SOAP request and response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places; the decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. See the currency codes page for details.

ShippingTotal

ebl:BasicAmountType

(Optional) Total shipping costs for this order.

Character length and limitations: Value is a positive number (or 0 in the case of Card Verifications or Zero amount Auths). The amount cannot exceed nine (9) digits in the SOAP request and response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places; the decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. See the currency codes page for details.

InsuranceTotal

ebl:BasicAmountType

(Optional) Total shipping insurance costs for this order. The value must be a non-negative currency amount or null if you offer insurance options.

Character length and limitations: Value is a positive number (or 0 in the case of Card Verifications or Zero amount Auths). The amount cannot exceed nine (9) digits in the SOAP request and response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places; the decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. See the currency codes page for details.

InsuranceTotal is available since version 53.0.

ShippingDiscount

ebl:BasicAmountType

(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 (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. See the currency codes page for details.

ShippingDiscount is available since version 53.0.

HandlingTotal

ebl:BasicAmountType

(Optional) Total handling costs for this order.

Character length and limitations: Value is a positive number (or 0 in the case of Card Verifications or Zero amount Auths). The amount cannot exceed nine (9) digits in the SOAP request and response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places; the decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. See the currency codes page for details.

TaxTotal

ebl:BasicAmountType

(Optional) Sum of tax for all items in this order.

Character length and limitations: Value is a positive number (or 0 in the case of Card Verifications or Zero amount Auths). The amount cannot exceed nine (9) digits in the SOAP request and response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places; the decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. See the currency codes page for details.

OrderDescription

xs:string

(Optional) Description of items the buyer is purchasing.

Character length and limitations: 127 single-byte alphanumeric characters

Custom

xs:string

(Optional) A free-form field for your own use.

Character length and limitations: 256 single-byte alphanumeric characters

InvoiceID

xs:string

(Optional) Your own invoice or tracking number.

Character length and limitations: 256 single-byte alphanumeric characters

ButtonSource

xs:string

(Optional) An identification code for use by third-party applications to identify transactions.

Character length and limitations: 32 single-byte alphanumeric characters

NotifyURL

xs:string

(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.

Character length and limitations: 2,048 single-byte alphanumeric characters

ShipToAddress

ns:AddressType

(Optional) Address to which the order is shipped.

PaymentDetailsItem

ebl:PaymentDetailsItemType

(Optional) Details about each individual item included in the order.

Recurring

ns:RecurringFlagType

(Optional) Flag to indicate a recurring transaction. Value is:


  • Any value other than Y — This is not a recurring transaction (default).

  • Y — This is a recurring transaction.

This field is introduced in version 80.0 of the API.

PaymentCategoryType

ebl:PaymentCategoryType

(Optional) Category of a payment. Value is:
InternationalShipping
LocalDelivery


PAYMENTINITIATOR
  • CUSTOMER (default) - Customer initiates the payment. Also referred to as a Customer Initiated Transaction (CIT).
  • MERCHANT - Merchant initiates the transaction and the merchant has established consent to charge the buyer. Also referred to as a Merchant Initiated Transaction (MIT).

PAYMENTCATEGORY
  • UNSCHEDULED - Payments that the merchant initiates and are not on a specified schedule. For example, this includes preauthorized transactions where the merchant can charge the buyer once a balance falls within a specified range. These transactions are also referred to as top-up.
  • RECURRING - Merchant initiates a payment as part of a series of recurring payments. The payment amounts can be variable and are on a fixed time interval.
  • ONE_TIME - Single, one-time payment.
CARDONFILE
  • FIRST - Save card information or payment token to use in subsequent transactions. Collect consent from the buyer that you intend to save their payment information.
  • SUBSEQUENT - Card information or payment token was previously saved and is used in the transaction.
PREVIOUSTRANSACTIONREFERENCE
PayPal transaction ID previously used to charge the buyer. Shows payment processors that you have established a contract with the buyer.
PREVIOUSNETWORKTRANSACTIONREFERENCE
  • PREVIOUSNETWORKTRANSACTIONID - Transaction ID from a non-PayPal payment processor that you have previously used to process the payment.
  • Network - TransactionID from a non-PayPal payment processor that you have previously used to process the payment.

PaymentDetailsItemType Fields

Field Description

Name

xs:string

(Optional) Item name.

Character length and limitations: 127 single-byte characters

Description

xs:string

(Optional) Item description.

Description is available since version 53.0.

Character length and limitations: 127 single-byte characters

Amount

ebl:BasicAmountType

(Optional) Cost of item.

Character length and limitations: Value is a positive number (or 0 in the case of Card Verifications or Zero amount Auths). The amount cannot exceed nine (9) digits in the SOAP request and response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places; the decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. See the currency codes page for details.

Number

xs:string

(Optional) Item number.

Character length and limitations: 127 single-byte characters

Quantity

xs:integer

(Optional) Item quantity.

Character length and limitations: Any positive integer

Tax

ebl:BasicAmountType

(Optional) Item sales tax.

Character length and limitations: Value is a positive number (or 0 in the case of Card Verifications or Zero amount Auths). The amount cannot exceed nine (9) digits in the SOAP request and response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places; the decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. See the currency codes page for details.

EbayItemPayment DetailsItem

eBl:ebayItemPaymentDetailsItemType

(Optional) Information relating to an auction sale on eBay.

EbayItemPaymentDetailsItemType Fields

Field Description

ItemNumber

xs:string

(Optional) Auction item number.

Character length: 765 single-byte characters

AuctionTransaction Id

xs:string

(Optional) Auction transaction identification number.

Character length: 255 single-byte characters

OrderID

xs:string

(Optional) Auction order identification number.

Character length: 64 single-byte characters

AddressType (Shipping) Fields

Field Description

Name

xs:string

Person's name associated with this shipping address. It is required if using a shipping address.

Character length and limitations: 32 double-byte characters

Street1

xs:string

First street address. It is required if using a shipping address.

Character length and limitations: 100 single-byte characters

Street2

xs:string

(Optional) Second street address.

Character length and limitations: 100 single-byte characters

CityName

xs:string

Name of city. It is required if using a shipping address.

Character length and limitations: 40 single-byte characters

StateOrProvince

xs:string

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

PostalCode

xs:string

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

Country

ebl:CountryCodeType

Country code. It is required if using a shipping address.

Character length and limitations: 2 single-byte characters

DoDirectPayment Response Message

DoDirectPayment Response Fields

Field Description

TransactionID

xs:string

(Optional) Unique transaction ID of the payment.

Character length and limitations: 17 characters. Orders transactions have 19 characters.

Amount

ebl:BasicAmountType

This value is the payment amount specified in the DoDirectPaymentRequest request.

AVSCode

xs:string

Address Verification System response code resulting from the AVS verification. See AVS Response Codes for details.

Character length and limitations: 1 single-byte alphanumeric character

CVV2Code

xs:string

Result of the CVV2 verification. See CVV2 Response Codes for details.

TransactionPendingReason

xs:string

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: delayed-disbursement.

FMFDetails

ebl:FMFDetailsType

Fraud filter details.

PaymentAdviceCode

xs:string

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 using 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 same card if the Payment Advice 03 and 21 codes are returned.

FMFDetailsType Fields

Field Description

AcceptFilters

xs:RiskFilterListType

List of filters that recommend acceptance of the payment.

DenyFilters

xs:RiskFilterListType

List of filters that recommend denial of the payment.

PendingFilters

xs:RiskFilterListType

List of filters that caused the payment to become pending.

ReportsFilters

xs:RiskFilterListType

List of filters that caused the payment to become flagged.

RiskFilterListType Fields

Field Description

ID

xs:int

Filter ID. Value is:

  • 1 - AVS No Match

  • 2 - AVS Partial Match

  • 3 - AVS Unavailable/Unsupported

  • 4 - Card Security Code (CSC) Mismatch

  • 5 - Maximum Transaction Amount

  • 6 - Unconfirmed Address

  • 7 - Country Monitor

  • 8 - Large Order Number

  • 9 - Billing/Shipping Address Mismatch

  • 10 - Risky ZIP Code

  • 11 - Suspected Freight Forwarder Check

  • 12 - Total Purchase Price Minimum

  • 13 - IP Address Velocity

  • 14 - Risky Email Address Domain Check

  • 15 - Risky Bank Identification Number (BIN) Check

  • 16 - Risky IP Address Range

  • 17 - PayPal Fraud Model

Name

xs:string

Filter name.

Description

xs:string

Filter description.

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:

  • Good result — 2 or D

  • Bad result — 1

Attempted authentication:

  • Good result — 3, 6, 8, A, or C

  • Bad result — 4, 7, or 9

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:

  • 01 — Merchant Liability

  • 02 — Issuer Liability

Visa:

  • 05 — Issuer Liability

  • 06 — Issuer Liability

  • 07 — Merchant Liability

Additional information

We use cookies to improve your experience on our site. May we use marketing cookies to show you personalized ads? Manage all cookies