Integration Guide

Table Of Contents
PayPal Payments Standard Integration Guide June 2012 165
Recurring Payments – Subscribe Buttons
Sample HTML Code for Subscribe Buttons
3
<input type="hidden" name="src" value="1">
<input type="hidden" name="srt" value="6">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypal.com/en_US/i/scr/pixel.gif" >
</form>
For more information, see “Limiting the Number of Billing Cycles with Subscribe Buttons” on
page 137.
Sample HTML Code for Subscribe Buttons with Product Options
When you add production options to your Subscribe buttons with HTML code that you write
yourself, you can have a maximum of 10 product options, each with their own sets of choices.
The options can be either dropdown menus or text boxes.
Read the following topics for sample code that illustrates various ways to add product options
to Subscribe buttons.
“Sample Code for a Subscribe Button with Product Options” on page 165
“Sample Code for a Subscribe Button with Product Options as Text Boxes” on page 166
For more information, see “Offering Product Options with Subscribe Buttons” on page 138.
Sample Code for a Subscribe Button with Product Options
The sample HTML code below illustrates a basic Subscribe button with a dropdown menu of
product options.
<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">
<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="a3" value="5.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<!-- Set recurring payments until canceled. -->