Integration Guide

Table Of Contents
Recurring Payments – Subscribe Buttons
Sample HTML Code for Subscribe Buttons
3
172 September 2008 Website Payments Standard Integration Guide
Sample HTML Code for a Subscribe Button With Password Management
The sample HTML code below illustrates a Subscribe button that has PayPal generate
usernames and passwords automatically.
<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="currency_code" value="USD">
<input type="hidden" name="a3" value="19.95">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<!-- Have PayPal generate usernames and passwords. -->
<input type="hidden" name="usr_manage" value="1">
<!-- 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 “Generating Usernames and Passwords With Subscribe Buttons” on
page 139.
Sample HTML Code for a Subscribe Button That Reattempts Payments
The sample HTML code below illustrates a Subscribe button that has PayPal reattempt failed
recurring payments before canceling subscriptions.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<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">