Re: Setting up variable monthly donations

vIQleS
Contributor
Contributor

Ok - so I eventually got it to work (with someone's help who is now too busy)

 

But - it's not allowing me to chose a non-recurring subscription.

 

<form target="_top" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="hosted_button_id" value="4HPD5LXGAFMT2">
<p style="display: none;">
<input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="business" value="na***@***.nz">
<input type="hidden" name="item_name" value="Support Subscription">
<input type="hidden" name="item_number" value="WFD-1002">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="NZ">
<input type="hidden" name="currency_code" value="NZD">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="return" value="http://thecusp.org.nz/thanks.html">
<input type="hidden" name="cancel_return" value="http://thecusp.org.nz/">
</p>
Enter the dollar amount:&nbsp;
<!-- a3, Required, Regular Subscription Price -->
<input type="text" name="a3" size="4" maxlength="7" required="required">
<!-- src, Optional, Recurring Payments, 0 no recur, 1 payments recur -->
Recurring?&nbsp;
<select name="src">
<option value="1" selected="true">Yes</option>
<option value="0">No (one off)</option>
</select>
<!--  -->
Every:&nbsp;
<!-- p3, Required, Duration based on the value of t3 -->
<select name="p3" required="required">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="15">15</option>
<option value="30">30</option>
</select>
<!--  -->
How often:&nbsp;
<!-- t3, Required, Subscription Units D W M Y, -->
<select name="t3">
<option value="D">Day(s)</option>
<option value="W">Week(s)</option>
<option value="M" selected="true">Month(s)</option>
<option value="Y">Year(s)</option>
</select>
How long for?:
<!-- srt, Optional, Recurring Times, must be used with src -->
<select name="srt">
<option value="">Until Canceled</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="6">6</option>
<option value="12">12</option>
<option value="18">18</option>
<option value="24">24</option>
<option value="36">36</option>
</select>
<!-- sra, Optional, Reattempt on failure 2 more time, value 0 or 1, if 0 no reattempt -->
<input type="hidden" name="sra" value="1">
Thank you for your Support
<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>
<!-- End of Form -->

 Can anyone see what I've done wrong? I added the select src becauee I couldn't fine a combination of options that would create a non-recurring subscription.

Login to Me Too
3 REPLIES 3

vIQleS
Contributor
Contributor

It also seems to be doing $1, regardless of the amount entered...

Login to Me Too

vIQleS
Contributor
Contributor

Anyone?

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.