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
42 April 2012 PayPal Payments Pro Integration Guide
<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=500>
<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%2d05T03%3a55%3a13Z&CORRELATIONID=2f8b1e854983e&ACK=Succ
ess&VERSION=62%2e0&BUILD=1218643&AMT=500%2e00&CURRENCYCODE=USD&AVSCODE=X&CV
V2MATCH=M&TRANSACTIONID=4 HS1916972552122T
Use the transaction ID in the DoReauthorization request to identify the authorization that
you want to reauthorize:
<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= 62.0>
<input type=hidden name=AUTHORIZATIONID value=4HS19 16972552122T>
<input type=hidden name=AMT value=23>
<input type=hidden name=CURRENCYCODE value=USD>
<input type=submit name=METHOD value=DoReauthorization>
</form>
The response to DoReauthorization contains a new authorization ID: