Integration Guide

Table Of Contents
Contents
6 June 2012 PayPal Payments Standard Integration Guide
Offering Trial Periods and Introductory Rates with Subscribe Buttons . . . . . . . . .136
Limiting the Number of Billing Cycles with Subscribe Buttons . . . . . . . . . . . . .137
Offering Product Options with Subscribe Buttons . . . . . . . . . . . . . . . . . . . .138
Working with Modify Subscription Buttons. . . . . . . . . . . . . . . . . . . . . . . .138
Working with Unsubscribe Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . .141
Generating Usernames and Passwords with Subscribe Buttons . . . . . . . . . . . .143
Reattempting Failed Recurring Payments with Subscribe Buttons . . . . . . . . . . .144
Creating Advanced Subscribe Buttons on the PayPal Website . . . . . . . . . . . . . . .146
The Basic Steps for Using the Tool with Subscribe Buttons . . . . . . . . . . . . . . .146
Saving Subscribe Buttons in Your PayPal Account . . . . . . . . . . . . . . . . . . .147
Tracking Inventory and Profit and Loss for Subscribe Buttons . . . . . . . . . . . . .148
Adding Advanced Features to Subscribe Buttons with HTML Variables . . . . . . . .148
Generating Code for Subscribe Buttons and Email Payment Links . . . . . . . . . . .148
Protecting HTML Code for Subscribe Buttons. . . . . . . . . . . . . . . . . . . . . .148
Step 1 – Specifying Basic Features of Your Subscribe Button . . . . . . . . . . . . .149
Step 2 – Tracking Inventory and Profit and Loss with Your Subscribe Button . . . . . .153
Step 3 – Adding Advanced Features to Your Subscribe Button . . . . . . . . . . . . .156
Copying and Pasting the Subscribe Code . . . . . . . . . . . . . . . . . . . . . . . .158
Avoiding Problems with Pasted HTML Code . . . . . . . . . . . . . . . . . . . . . .159
Using the Button Creation Tool for an Unsubscribe Button . . . . . . . . . . . . . . .160
Sample HTML Code for Subscribe Buttons . . . . . . . . . . . . . . . . . . . . . . . . .162
Sample HTML Code for a Basic Subscribe Button . . . . . . . . . . . . . . . . . . .162
Sample HTML Code for a Subscribe Button with Trial Periods . . . . . . . . . . . . .163
Sample HTML Code for a Subscribe Button with Limits on Billing Cycles. . . . . . . .164
Sample HTML Code for Subscribe Buttons with Product Options . . . . . . . . . . .165
Sample HTML Code for a Modify Subscription Button . . . . . . . . . . . . . . . . .167
Sample HTML Code for an Unsubscribe Button. . . . . . . . . . . . . . . . . . . . .168
Sample HTML Code for a Subscribe Button with Password Management . . . . . . .169
Sample HTML Code for a Subscribe Button That Reattempts Payments . . . . . . . .170
Sample URL Code for Subscribe Email Payment Links . . . . . . . . . . . . . . . . . . .171
Creating Subscribe Buttons with JavaScript Disabled . . . . . . . . . . . . . . . . . . .171
Getting Started with Subscribe Buttons with JavaScript Disabled . . . . . . . . . . .171
Creating Advanced Subscribe Buttons with JavaScript Disabled . . . . . . . . . . . .173
Limitations When Creating Payment Buttons with JavaScript Disabled . . . . . . . . .183
Enabling JavaScript in Your Browser . . . . . . . . . . . . . . . . . . . . . . . . . .183
Chapter 4 Recurring Payments – Automatic Billing Buttons . . . . 185
Getting Started with Automatic Billing Buttons . . . . . . . . . . . . . . . . . . . . . . .185
The Checkout Experience with Automatic Billing Buttons . . . . . . . . . . . . . . . . . .189