Solved

PayPal Form Issue

Posted on 2012-03-13
4
292 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jQuery on Submit 4 36
Implement a function similar to grep in vanilla Javascript 3 17
Character counter breaks after adding EmojiOne Area 4 19
Javascript 2 17
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

789 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