Integration Guide

Table Of Contents
PayPal Payments Standard Integration Guide June 2012 167
Recurring Payments – Subscribe Buttons
Sample HTML Code for Subscribe Buttons
3
<input type="hidden" name="src" value="1">
<!-- Provide the buyer with a text box option field. -->
<input type="hidden" name="on0"
value="Size">Enter your size (S, M, L, X, XX) <br />
<input type="text" name="os0" maxlength="60"> <br />
<!-- 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>
The sample code above produces the following result on your webpage:
Paste the code onto your webpage below an image or a text description of the item.
Sample HTML Code for a Modify Subscription Button
The sample HTML code in this topic illustrates a Modify Subscription button, which lets
subscribers convert their current subscriptions to a new set of terms. Modify Subscription
buttons are useful for letting subscribers upgrade from one subscription level to another. The
subscription number remains the same as before; only the terms of the subscription change.
The sample code illustrates a Modify Subscription button with these features:
A subscription price of $69.95 USD.
A 6-month billing cycle.
No limit on the number of billing cycles.
Subscription modification allowed for the above terms only. New subscriptions in addition
to the current subscriptions are not allowed.
The subscription ends only when the merchant or subscriber cancel it.