Solved

PayPal Form Issue

Posted on 2012-03-13
4
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 29

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 29

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 29

Expert Comment

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

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

729 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