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)
Getting Started With Direct Payment
Direct Payment Authorization and Captures
4
40 April 2012 PayPal Payments Pro Integration Guide
IMPORTANT: Never use post actions for live transactions; they are not secure.
In your DoDirectPayment request, set the payment action to Authorization:
<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=PAYMENTACTION value=Au thorization>
<input type=hidden name=CREDITCARDTYPE value=Visa>
<input type=hidden name=ACCT value=...>
<input type=hidden name=STARTDATE value=112000>
<input type=hidden name=EXPDATE value=112020>
<input type=hidden name=CVV2 value=123>
<input type=hidden name=AMT value=20.00>
<input type=hidden name=CURRENCYCODE value=USD>
<input type=hidden name=FIRSTNAME value=...>
<input type=hidden name=LASTNAME value=...>
<input type=hidden name=STREET value=...>
<input type=hidden name=STREET2 value=>
<input type=hidden name=CITY value="San Francisco">
<input type=hidden name=STATE value=CA>
<input type=hidden name=Zip value=94121>
<input type=hidden name=COUNTRYCODE value=US>
<input type=hidden name=EMAIL value=... >
<input type=submit name=METHOD value=DoDirectPayment>
</form>
If the authorization was successful, the response contains the authorization ID in the
transaction ID field:
TIMESTAMP=2010%2d03%2d08T19%3a35%3a18Z&CORRELATIONID=ab12f37f9566&ACK=Succe
ss&VERSION=58%2e0&BUILD=1218643&AMT=20%2e00&CURRENCYCODE=USD&AVSCODE=X&CVV2
MATCH=M&TRANSACTIONID=6RH 38738S17889722
Use this ID in the DoCapture request to specify the authorization that you want to capture: