Solved

PayPal Form Issue

Posted on 2012-03-13
4
291 Views
Last Modified: 2016-03-24
I have a donation form that I can't seem to get to work. http://ow.ly/9CO0q

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
        <input type="hidden" name="cmd" value="_s-xclick">
         <input type="hidden" name="hosted_button_id" value="XXXXXXXXXX">
          
            <p><strong>Donation Form</strong><br />
            <p>Please mark the donation type below</p>
              <p>
                <label class="question"><strong>Community Donation: </strong></label>
                <br />
                <input type="radio" name="donation_50" class="multiple_choice" id="donation_50" value="Radio-0" />
                <label for="donation_50" >$50</label>
                <br />
                <input name="donation_100" type="radio" class="multiple_choice" id="donation_100" value="Radio-1" checked="checked" />
                <label for="donation_100" >$100</label> 
                <br />
                <input type="radio" name="donation_500" class="multiple_choice" id="donation_500" value="Radio-2" />
                <label for="donation_500" >$500</label> 
                <br />
                <input type="radio" name="donation_other" class="multiple_choice" id="donation_other" value="Radio-3" />
                <label for="donation_other" >Other $</label>
                <br />
                <input type="radio" name="donation_scholarship" class="multiple_choice" id="donation_scholarship" value="Radio-4" />
                <label for="donation_scholarship" >Child’s scholarship</label>
                <br />
                <input type="radio" name="donation_oh" class="multiple_choice" id="donation_oh" value="Radio-5" />
                <label for="donation_oh" >Opportunity House class</label>
                <br />
                <input type="radio" name="donation_go" class="multiple_choice" id="donation_go" value="Radio-6" />
              <label for="donation_go" >General Operating Fund</label>              
              <p>
                
                <label class="question"><strong>Business Donation: </strong></label>  
                <br />
                <input type="checkbox" name="business" value="silver">
                Business Silver $250
                <br />
                <input type="checkbox" name="business" value="gold">
                Business Gold $500
                <br />
                <input type="checkbox" name="business" value="platinum">
                Business Platinum $1000
          <label class="question"><strong><br />
            <br />
            Contact information:</strong></label>
            <p><strong>Name:
  <input type="text" name="fname" size="45">
              </strong> </p>
            <p><strong>Address:
              </strong>
              <input type="text" name="address" size="30" id="address">
              <br />
            <p><strong>City:
  <input type="text" name="city" size="20">
                State: <input type="text" name="state" size="5">
                Zip: <input type="text" name="zip" size="9">
                
              </strong><br />
            <p><strong>Business Name:               
                </strong>
              <input type="text" name="bizname" size="50">
              </p>
              <p><strong>Business Address:</strong>
                <input type="text" name="bizaddress" size="35">
              </p>
            <p><strong>City:
              <input type="text" name="bizcity" size="20">
                State: <input type="text" name="bizstate" size="5">
                Zip:</strong>
              <input type="text" name="bizzip" size="9">
          </p>
            <p><strong>Phone (optional):</strong>
              <input type="text" name="phone" size="15" id="phone" />
            </p>
            <p><strong>Email:</strong>
              <input type="text" name="ermail" size="40" />
            </p>
        <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>

Open in new window

0
Comment
Question by:BluesMama
  • 3
4 Comments
 
LVL 28

Expert Comment

by:sammySeltzer
ID: 37718228
what is not working?
0
 

Author Comment

by:BluesMama
ID: 37718287
instead of sending the amount it just takes me to the cart and I still have to enter the amount vs automatically adding it.
0
 
LVL 28

Accepted Solution

by:
sammySeltzer earned 500 total points
ID: 37718338
Just looking at your code, this line is about the only paypal code you have integrated.


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


You need more like below.

Take relevant code.

Also, see link as well:

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_donation_buttons
 
 
 <!-- Identify your business so that you can collect the payments. -->  
 
 
 
 <input type="hidden" name="business"  
 
 value="donations@kcparkfriends.org">  
 
 
 <!-- Specify a Donate button. -->  
 
 
 <input type="hidden" name="cmd" value="_donations">  
 
 
 
 <!-- Specify details about the contribution -->  
 
 
 
 <input type="hidden" name="item_name" value="Friends of the Park">  
 
 
 
 <input type="hidden" name="item_number" value="Fall Cleanup Campaign">  
 
 
 
 <input type="hidden" name="currency_code" value="USD">  
 
 
 <!-- Display the payment button. -->  
 
 <input type="image" name="submit" border="0"  
 
 src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif"  
 
 
 alt="PayPal - The safer, easier way to pay online">  
 
 
 
 <img alt="" border="0" width="1" height="1"  
 
 
 src="https://www.paypal.com/en_US/i/scr/pixel.gif" >  </form>
0
 
LVL 28

Expert Comment

by:sammySeltzer
ID: 37783054
Does he mean, No response from him?
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question