Integration Guide

Table Of Contents
Recurring Payments – Subscribe Buttons
Sample HTML Code for Subscribe Buttons
3
168 September 2008 Website Payments Standard Integration Guide
<!-- Set the initial payment. -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a1" value="129.95">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="M">
<!-- Set the terms of the recurring payments. -->
<input type="hidden" name="a3" value="69.95">
<input type="hidden" name=
"p3" value="1">
<input type="hidden" name="t3" value="M">
<!-- Limit the number of billing cycles. -->
<input type="hidden" name="src" value="1">
<input type="hidden" name="srt" value="5">
<!-- 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 133.
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.
z “Sample Code for a Subscribe Button With Product Options” on page 168
z “Sample Code for a Subscribe Button With Product Options as Text Boxes” on page 169
For more information, see “Offering Product Options With Subscribe Buttons” on page 134.
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 Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">