Integration Guide
Table Of Contents
- PayPal Payments Pro Integration Guide
- Contents
- Preface
- Introducing PayPal Payments Pro
- Introducing Direct Payment
- Introducing Express Checkout
- Getting Started With Direct Payment
- Getting Started With Express Checkout
- Integrating Recurring Payments
- How Recurring Payments Work
- Recurring Payments Terms
- Recurring Payments With Direct Payment
- Recurring Payments With the Express Checkout API
- Options for Creating a Recurring Payments Profile
- Recurring Payments Profile Status
- Getting Recurring Payments Profile Information
- Modifying a Recurring Payments Profile
- Billing the Outstanding Amount of a Profile
- Recurring Payments Notifications
- Getting Started With the PayPal Name-Value Pair API
- Implementing 3-D Secure Transactions (UK Only)
PayPal Payments Pro Integration Guide April 2012 41
Getting Started With Direct Payment
Direct Payment Authorization and Captures
4
<form method=post action=https://sandbox.paypal.com/nvp>
<input type=hidden name=USER value=...>
<input type=hidden name=PWD value=...>
<input type=hidden name=SIGNATURE value=...>
<input type=hidden name=VERSION value= 58.0>
<input type=hidden name=AUTHORIZATIONID value=6RH38 738S17889722>
<input type=hidden name=AMT value=5>
<input type=hidden name=CURRENCYCODE value=USD>
<input type=hidden name=COMPLETETYPE value=Complete>
<input type=hidden name=INVNUM value=>
<input type=hidden name=NOTE value= March 08 2010>
<input type=hidden name=SOFTDESCRIPTOR value=>
<input type=submit name=METHOD value=DoCapture>
</form>
If the capture was successful, the payment status is Completed:
AUTHORIZATIONID=6RH38738S17889722&TIMESTAMP=2010%2d03%2d08T19%3a47%3a39Z&CO
RRELATIONID=d1e8043ae0a12&ACK=Success&VERSION=58%2e0&BUILD=1218643&TRANSACT
IONID=5F62121256435650V&PARENTTRANSACTIONID=6RH38738S17889722&RECEIPTID=007
8%2d2642%2d6061%2d5728&TRANSACTIONTYPE=webaccept&PAYMENTTYPE=instant&EXPECT
EDECHECKCLEARDATE=1970%2d01%2d01T00%3a00%3a00Z&ORDERTIME=2010%2d03%2d08T19%
3a47%3a38Z&AMT=5%2e00&FEEAMT=0%2e45&TAXAMT=0%2e00&CURRENCYCODE=USD&PAYMENTS
TATUS=Comple ted&PENDINGREASON=None&REASONCODE=None&PROTECTIONELIGIBILITY=In
eligible
NOTE: The DoCapture response returns a new transaction ID as well as the authorization
ID. The authorization ID is also the parent transaction ID for the completed
transaction.
DoDirectPayment Reauthorization and Capture Example
This example authorizes a credit card payment using the DoDirectPayment API operation
and then reauthorizes the payment using the DoReauthorization API operation before
capturing it with the DoCapture API operation.
IMPORTANT: Never use post actions for live transactions; they are not secure.
In your DoDirectPayment request, set the payment action to Authorization: