Paypal button - subscription dropdown menu question

westernred
New Community Member

Hi there, I have a question for my website subscription service:

 

I'm wondering if there's a way to create a Paypal subscription button that I can put on my website which has:

 

A dropdown menu with different options with subscriptions that end at different times.

 

Eg.

 

Option 1: 3 month subscription for $50 (which ends after 3 monthly billing cycles)
Option 2: 6 month subscription for $150 (which ends after 6 monthly billing cycles)
Option 3: 12 month subscription for $300 (which ends after 12 monthly billing cycles)

 

All those options on the same dropdown menu on the same Paypal subscription button.

 

Is that possible?

 

Thanks!

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

Anonymous_User
Not applicable

I believe what you have in mind is possible however, the code will need a tweak or two.  You can generate the major part of the code you need using the online button creator however, don't save the code to PayPal servers as you will need to add a few lines of new code.  For learning purposes, check out the example below.  This should provide some ideas and show you the additional variable and value you need to include.

<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">


<title>Custom Subscription Button</title>
   
 
</head>

<body>

Custom Subscription Button

<br><br><br>

Notes:
<br> 
Replace "business" value with your PayPal Email Address or your Merchant Account ID
<br>
This example uses the "srt" variable with it's value set for the number of months for each option.

<br><br><br>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_self">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email address or merchant ID">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Widget Subscription">
<input type="hidden" name="item_number" value="WS-001">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="https://www.mystore.com/success">
<input type="hidden" name="cancel_return" value="https://www.mystore.com/cancel">
<input type="hidden" name="src" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted">
<table>
<tr><td><input type="hidden" name="on0" value="Payment Options">Payment Options</td></tr><tr><td><select name="os0">
	<option value="3 Month">3 Month : $50.00 USD - monthly</option>
	<option value="6 Month">6 Month : $150.00 USD - monthly</option>
	<option value="12 Month">12 Month : $300.00 USD - monthly</option>
</select> </td></tr>
</table>
<input type="hidden" name="option_select0" value="3 Month">
<input type="hidden" name="option_amount0" value="50.00">
<input type="hidden" name="option_period0" value="M">
<input type="hidden" name="option_frequency0" value="1">
<input type="hidden" name="option_srt0" value="3">

<input type="hidden" name="option_select1" value="6 Month">
<input type="hidden" name="option_amount1" value="150.00">
<input type="hidden" name="option_period1" value="M">
<input type="hidden" name="option_frequency1" value="1">
<input type="hidden" name="option_srt1" value="8">

<input type="hidden" name="option_select2" value="12 Month">
<input type="hidden" name="option_amount2" value="300.00">
<input type="hidden" name="option_period2" value="M">
<input type="hidden" name="option_frequency2" value="1">
<input type="hidden" name="option_srt2" value="12">

<input type="hidden" name="option_index" value="0">

<br><br>

<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

<br><br><br><br>

Unsubscribe URL Link Example

<br><br>

<A HREF="https://www.paypal.com/cgi-bin/webscr?cmd=_subscr-find&alias=your email address or merchant ID">
<IMG src="https://www.paypalobjects.com/en_US/i/btn/btn_unsubscribe_LG.gif" BORDER="0">
</A> 
  
</body>
</html>

View solution in original post

Login to Me Too
1 REPLY 1
Solved

Anonymous_User
Not applicable

I believe what you have in mind is possible however, the code will need a tweak or two.  You can generate the major part of the code you need using the online button creator however, don't save the code to PayPal servers as you will need to add a few lines of new code.  For learning purposes, check out the example below.  This should provide some ideas and show you the additional variable and value you need to include.

<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">


<title>Custom Subscription Button</title>
   
 
</head>

<body>

Custom Subscription Button

<br><br><br>

Notes:
<br> 
Replace "business" value with your PayPal Email Address or your Merchant Account ID
<br>
This example uses the "srt" variable with it's value set for the number of months for each option.

<br><br><br>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_self">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email address or merchant ID">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Widget Subscription">
<input type="hidden" name="item_number" value="WS-001">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="https://www.mystore.com/success">
<input type="hidden" name="cancel_return" value="https://www.mystore.com/cancel">
<input type="hidden" name="src" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted">
<table>
<tr><td><input type="hidden" name="on0" value="Payment Options">Payment Options</td></tr><tr><td><select name="os0">
	<option value="3 Month">3 Month : $50.00 USD - monthly</option>
	<option value="6 Month">6 Month : $150.00 USD - monthly</option>
	<option value="12 Month">12 Month : $300.00 USD - monthly</option>
</select> </td></tr>
</table>
<input type="hidden" name="option_select0" value="3 Month">
<input type="hidden" name="option_amount0" value="50.00">
<input type="hidden" name="option_period0" value="M">
<input type="hidden" name="option_frequency0" value="1">
<input type="hidden" name="option_srt0" value="3">

<input type="hidden" name="option_select1" value="6 Month">
<input type="hidden" name="option_amount1" value="150.00">
<input type="hidden" name="option_period1" value="M">
<input type="hidden" name="option_frequency1" value="1">
<input type="hidden" name="option_srt1" value="8">

<input type="hidden" name="option_select2" value="12 Month">
<input type="hidden" name="option_amount2" value="300.00">
<input type="hidden" name="option_period2" value="M">
<input type="hidden" name="option_frequency2" value="1">
<input type="hidden" name="option_srt2" value="12">

<input type="hidden" name="option_index" value="0">

<br><br>

<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

<br><br><br><br>

Unsubscribe URL Link Example

<br><br>

<A HREF="https://www.paypal.com/cgi-bin/webscr?cmd=_subscr-find&alias=your email address or merchant ID">
<IMG src="https://www.paypalobjects.com/en_US/i/btn/btn_unsubscribe_LG.gif" BORDER="0">
</A> 
  
</body>
</html>
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.