Solved

PayPal Form Issue

Posted on 2012-03-13
4
287 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
Comment Utility
what is not working?
0
 

Author Comment

by:BluesMama
Comment Utility
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
Comment Utility
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
Comment Utility
Does he mean, No response from him?
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to count occurrences of each item in an array.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now