Integration Guide

Table Of Contents
Recurring Payments – Subscribe Buttons
Sample HTML Code for Subscribe Buttons
3
162 June 2012 PayPal Payments Standard Integration Guide
For Windows, press Ctrl+V.
For Mac, press CMD+V.
Sample HTML Code for Subscribe Buttons
The sample HTML code in this section demonstrates various features of Subscribe buttons:
“Sample HTML Code for a Basic Subscribe Button” on page 162
“Sample HTML Code for a Subscribe Button with Trial Periods” on page 163
“Sample HTML Code for a Subscribe Button with Limits on Billing Cycles” on page 164
“Sample HTML Code for Subscribe Buttons with Product Options” on page 165
“Sample HTML Code for a Modify Subscription Button” on page 167
“Sample HTML Code for an Unsubscribe Button” on page 168
“Sample HTML Code for a Subscribe Button with Password Management” on page 169
“Sample HTML Code for a Subscribe Button That Reattempts Payments” on page 170
To protect against malicious users tampering with the HTML code for your Subscribe buttons
and submitting fraudulent payments, see “Securing Your PayPal Payments Standard Buttons”
on page 337.
IMPORTANT: Organizations with significant payment volume are required to take
precautions on securing Website Payment Standard buttons.
Sample HTML Code for a Basic Subscribe Button
The sample HTML code below illustrates a basic Subscribe button with these features:
No trial periods
A subscription price of $5.00 USD
A monthly billing cycle
The subscription ends only when the merchant or subscriber cancel it.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="alice@mystore.com">
<!-- Specify a Subscribe button. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- Identify the subscription. -->
<input type="hidden" name="item_name" value="Alice's Weekly Digest">
<input type="hidden" name="item_number" value="DIG Weekly">