Recurring payments set up.

wlester
Contributor
Contributor

We have an online shopping cart set up so that our customers can order their supplies from us. I would like to set up a 'subscription' program so that the customer can get their supplies every month without placing an order manually.

I understand how to create the 'Subscribe' button and incorporate it into the shopping cart, but what if the customer wants more than one widget delivered every month? From what I can tell, the 'Subscribe' button will only work with a quantity of one at one set price.

 

Example: The customer needs 5 widgets delivered every month. Is it possible for the customer to choose a quantity of 5 and subscribe to this amount monthly?

 

Thanks in advance.

 

Login to Me Too
1 REPLY 1

Anonymous_User
Not applicable

It's possible to do what you're thinking about however, the online button creator cannot create the code you need.   Below is just one example of how to manually do what you have in mind - note, this is only for learning purposes and hopefully will give you some scripting ideas.

<!doctype html>
<html lang="en">
<head>

<title>Button Example Code</title>

<!-- START META TAG SECTION -->
<meta charset="utf-8">
<!-- END META TAG SECTION -->


<!-- Start of Script -->
<SCRIPT language=javascript>
function CalculateOrder(form)
{

if (form.os0.value == "$10 per month")
 {
 form.a3.value = 10.00;
 form.item_name.value = "1 Widget a Month"
 form.item_number.value = "1-W-M";
 }
 
if (form.os0.value == "$45 per month")
 {
 form.a3.value = 45.00;
 form.item_name.value = "5 Widgets a Month"
 form.item_number.value = "5-W-M";
 }
}  
</SCRIPT>
<!-- End of Script -->



</head>

<body>

<!-- START SAMPLE CODE SECTION -->


<!-- PARAGRAPH 1 -->
Subscription Examples

<br><br>

Script Option Choices.

<br><br>

Notes:
This Subscription example is for a choice of receiving 1 Widget or 5 Widgets a month.
<br><br>
Monthly fee is $10.00 or $45.00, which ever you select.

<br><br>

<!-- Start of Form -->
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="on0" value="Subscription Option">Select your Subscription:&nbsp;&nbsp;
<select name="os0">
<option value="$10 per month">$10 Option - 1 Widget a Month&nbsp;</option>
<option value="$45 per month">$45 Option - 5 Widgets a Month&nbsp;</option>
</select>
<br><br><br>
<INPUT onclick=CalculateOrder(this.form) type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
<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 Account ID">
<input type="hidden" name="item_name">
<input type="hidden" name="item_number">
<input type="hidden" name="no_shipping" value="2">
<!-- Replace value with the web page you want the customer to return to after a successful transaction -->
<input type="hidden" name="return" value="http://www.yourwebsite.com/ThankYou.html">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/Cancel.html">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted">
<input type="hidden" name="a3">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
</form>
<!-- End of Form -->



<!-- END BUTTON EXAMPLES -->



<!-- END SAMPLE CODE SECTION -->

<br><br><br><br>
<hr align="left" width="50%" noshade>
<br><br>
NOTES:
<br>
In order to test the code, you must replace the &quot;business&quot; value variable with your PayPal Email Address or your Merchant Account ID.


</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.