Solved

PayPal Form Issue

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Find out what you should include to make the best professional email signature for your organization.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
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 the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

733 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