Monthly Subscriptions not working correctly

FEMColombia
Contributor
Contributor

I am the website owner/manager of a Non-profit organisation in Colombia. We have several buttons on our donate page set up for our website. 
http://www.femcolombia.com/donate.html


We are having a issue with the button setup for monthly subscriptions. It is hosted by a Weebly website.



I followed the instructions on this page:

https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/subscribe_step_...

But no matter what subscription people chose, it always defaults to the default $5 version when they are taken to the Paypal page.

Can someone advise me what is going wrong and perhaps point me to the direction of a page or video that tells me how I can rectify this.

This is html form that was created


<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">

<input type="hidden" name="cmd" value="_s-xclick">

<input type="hidden" name="hosted_button_id" value="P7HDCW43395X6">

<table>


<tr><td><input type="hidden" name="on0" value=""></td></tr>
<tr><td>
<select name="os0">

<option value="Donate">Donate : $10.00 USD - Monthly</option>

<option value="Donate">Donate : $15.00 USD - Monthly</option>

<option value="Donate">Donate : $20.00 USD - Monthly</option>

<option value="Donate">Donate : $25.00 USD - Monthly</option>

<option value="Donate">Donate : $35.00 USD - Monthly</option>

<option value="Donate">Donate : $50.00 USD - Monthly</option>

<option value="Donate">Donate : $75.00 USD - Monthly</option>

<option value="Donate">Donate : $100.00 USD - Monthly</option>

<option value="Donate">Donate : $125.00 USD - Monthly</option>

</select>
</td></tr>
</table>

<input type="hidden" name="currency_code" value="USD">

<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/es_XC/i/scr/pixel.gif" width="1" height="1">

</form>

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

FEMColombia
Contributor
Contributor

Thank you for your response.  As you can see from the HTML of my form and the HTML of your form, they are both different.  I am not sure how that is.

I also went back and did another button, just incase I had done my one incorrect.  But no, my code generated very much like the first one, where as your one has a lot of options beneath it.  Are we generating the forms in the right location?

Anyway I "copied" your code, editted it a bit, and it works as it should.  If you generated that button in the same location I did, that's odd that my code was different to yours.  If you did it in a different location, can you provide me a link to where you did this.

Thank you for your help

View solution in original post

Login to Me Too
2 REPLIES 2

Quandary
Advisor
Advisor

I was able to use the online button creator to generate the code - it works fine.  I'm not sure what steps you took to generate your code but, you can do what you have in mind using the online button creator.  The example below is clear text, meaning it's not saved on the PayPal servers.  (If you want to recreate the code, you can save it on the PayPal servers.)

 

This example shows you how it works and what the variable values should be.  The example is a complete web page, you can use Notepad to make a HTML file, simply copy and paste the example into Notepad, then save the file as Test.html to your computer.  Then you can open the file with your web browser and test it.  Note, you need to replace the "business" variable value with your PayPal email address and save the file - then you can test it.

 

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <title>Donation Monthly Subscription Example</title>

</head>

<body>

  
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="Your Email Address">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Widgert Donation">
<input type="hidden" name="item_number" value="WD-01">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<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=""></td></tr><tr><td><select name="os0">
	<option value="Monthly Donation - $10">Monthly Donation - $10 : $10.00 USD - monthly</option>
	<option value="Monthly Donation - $15">Monthly Donation - $15 : $15.00 USD - monthly</option>
	<option value="Monthly Donation - $20">Monthly Donation - $20 : $20.00 USD - monthly</option>
	<option value="Monthly Donation - $25">Monthly Donation - $25 : $25.00 USD - monthly</option>
	<option value="Monthly Donation - $35">Monthly Donation - $35 : $35.00 USD - monthly</option>
	<option value="Monthly Donation - $50">Monthly Donation - $50 : $50.00 USD - monthly</option>
	<option value="Monthly Donation - $75">Monthly Donation - $75 : $75.00 USD - monthly</option>
	<option value="Monthly Donation - $100">Monthly Donation - $100 : $100.00 USD - monthly</option>
	<option value="Monthly Donation - $125">Monthly Donation - $125 : $125.00 USD - monthly</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="option_select0" value="Monthly Donation - $10">
<input type="hidden" name="option_amount0" value="10.00">
<input type="hidden" name="option_period0" value="M">
<input type="hidden" name="option_frequency0" value="1">
<input type="hidden" name="option_select1" value="Monthly Donation - $15">
<input type="hidden" name="option_amount1" value="15.00">
<input type="hidden" name="option_period1" value="M">
<input type="hidden" name="option_frequency1" value="1">
<input type="hidden" name="option_select2" value="Monthly Donation - $20">
<input type="hidden" name="option_amount2" value="20.00">
<input type="hidden" name="option_period2" value="M">
<input type="hidden" name="option_frequency2" value="1">
<input type="hidden" name="option_select3" value="Monthly Donation - $25">
<input type="hidden" name="option_amount3" value="25.00">
<input type="hidden" name="option_period3" value="M">
<input type="hidden" name="option_frequency3" value="1">
<input type="hidden" name="option_select4" value="Monthly Donation - $35">
<input type="hidden" name="option_amount4" value="35.00">
<input type="hidden" name="option_period4" value="M">
<input type="hidden" name="option_frequency4" value="1">
<input type="hidden" name="option_select5" value="Monthly Donation - $50">
<input type="hidden" name="option_amount5" value="50.00">
<input type="hidden" name="option_period5" value="M">
<input type="hidden" name="option_frequency5" value="1">
<input type="hidden" name="option_select6" value="Monthly Donation - $75">
<input type="hidden" name="option_amount6" value="75.00">
<input type="hidden" name="option_period6" value="M">
<input type="hidden" name="option_frequency6" value="1">
<input type="hidden" name="option_select7" value="Monthly Donation - $100">
<input type="hidden" name="option_amount7" value="100.00">
<input type="hidden" name="option_period7" value="M">
<input type="hidden" name="option_frequency7" value="1">
<input type="hidden" name="option_select8" value="Monthly Donation - $125">
<input type="hidden" name="option_amount8" value="125.00">
<input type="hidden" name="option_period8" value="M">
<input type="hidden" name="option_frequency8" value="1">
<input type="hidden" name="option_index" value="0">
<br><br><br>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_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>
  
</body>
</html>
Login to Me Too
Solved

FEMColombia
Contributor
Contributor

Thank you for your response.  As you can see from the HTML of my form and the HTML of your form, they are both different.  I am not sure how that is.

I also went back and did another button, just incase I had done my one incorrect.  But no, my code generated very much like the first one, where as your one has a lot of options beneath it.  Are we generating the forms in the right location?

Anyway I "copied" your code, editted it a bit, and it works as it should.  If you generated that button in the same location I did, that's odd that my code was different to yours.  If you did it in a different location, can you provide me a link to where you did this.

Thank you for your help

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.