Jump to:

23552 Posts in 19349 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » PayPal Setup

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

Page: 1
Go to End
Author Topic: 1060 Views
  • maxpol
    Community Member
    2 Posts

    PayPal Setup Link to this post

    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">
    <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>
    <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">

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.