Developer's Guide
Table Of Contents
- Website Payments Pro Payflow Edition - Recurring Payments Developer’s Guide
- Preface
- Audience
- Where To Go For More Information
- Revision History
- Recurring Payments Overview
- Creating Recurring Payments Profiles
- Preparing to Create Recurring Payments Profiles
- Creating Profiles Through Your PayPal Account
- Creating Recurring Payments Profiles Programmatically
- Options for Creating a Recurring Payments Profile Programmatically
- Example: Creating a Recurring Payments Profile For Billing a Credit Card
- Example: Creating a Recurring Payments Profile For Billing a PayPal Account
- Deactivating and Reactivating Recurring Payments Profiles
- Canceling Recurring Payments Profiles
- Getting Recurring Payments Profile Details
- Billing the Outstanding Amount
- Updating Recurring Payments Profiles
- Recurring Payments Reference
- Index
Creating Recurring Payments Profiles
Example: Creating a Recurring Payments Profile For Billing a PayPal Account
18 Payflow Recurring Payments Developer’s Guide
Example: Creating a Recurring Payments Profile For Billing a
PayPal Account
To create a Recurring Payments profile for a PayPal account, you must call Set Express
Checkout and pass the following parameter information:
z The billing type value RecurringPayments (required)
z A description of the goods or services associated with the agreement (required)
The example below passes the billing type and descriptions for two billing agreements. The
parameters required to create the Recuring Payments profile are in boldface.
Set Express Checkout Request
"TRXTYPE=A
&USER=User
&TENDER=P
&PARTNER=PayPal
&VENDOR=Vendor
&PWD=Pwd
&ACTION=S
&AMT=10.00
&RETURNURL=http://...
&CANCELURL=http://...
&CURRENCY=USD
&L_BILLINGTYPE0=RecurringPayments
&L_BILLINGAGREEMENTDESCRIPTION0=Time magazine
&L_BILLINGTYPE1=RecurringPayments
&L_BILLINGAGREEMENTDESCRIPTION1=Newsweek magazine
&SHIPTOCITY=San Jose
&SHIPTOCOUNTRY=USA US
&SHIPTOSTATE=CA
&SHIPTOSTREET=1 Main St
&SHIPTOZIP=95131
&PAYMENTTYPE=any"
Set Express Checkout Response
RESULT=0
&RESPMSG=Approved
&TOKEN=EC-5FA74536B1724550T
&CORRELATIONID=e8f1f97944872
When creating the recurring payments profile with ACTION=A, you pass the TOKEN returned in
the Set Express Checkout response, along with the following parameters:
z The L_BILLINGAGREEMENTDESCRIPTIONn string (exactly as it was passed in the call to
Set Express Checkout) for the profile you want to create
z TENDER type P to identify the recurring payments as billing a PayPal account
z The TOKEN returned in the Set Express Checkout response