Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

PayPal Setup


Reply


1085 Views

Avatar
maxpol

Community Member, 2 Posts

9 November 2010 at 6:08pm

Hi guys, I've just taken over a website as a webmaster and I need to setup a paypal button for buying memberships. I have an HTML code for the custom button but I get a Java Parse Error when I paste it in the HTML side. Here is the code

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="emaill@email.net">
<input type="hidden" name="lc" value="CA">
<input type="hidden" name="item_name" value="Park Membership">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="tax_rate" value="0.000">
<input type="hidden" name="shipping" value="0.00">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_paynowCC_LG.gif:NonHostedGuest">
<table>
<tr><td><input type="hidden" name="on0" value="Membership Type">Membership Type</td></tr><tr><td><select name="os0">
   <option value="Family/Sports">Family/Sports $35.00</option>
   <option value="Single/Associate">Single/Associate $25.00</option>
   <option value="Non-Resident">Non-Resident $20.00</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="option_select0" value="Family/Sports">
<input type="hidden" name="option_amount0" value="35.00">
<input type="hidden" name="option_select1" value="Single/Associate">
<input type="hidden" name="option_amount1" value="25.00">
<input type="hidden" name="option_select2" value="Non-Resident">
<input type="hidden" name="option_amount2" value="20.00">
<input type="hidden" name="option_index" value="0">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

Can I use that or do I have to use the commerce module?
Thanks!