fundraiser ticket with minimum amount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi - I don't see a way to sell tickets to a fundraising event where the minimum is $100 but we want people to also be able to type in more if they want to pay more. Am I missing something? Or, perhaps this is something that can be done with one of the paid PayPal accounts just not the free ones?
Thanks!
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What you have in mind can be done however, the item button code has to be manually created. You cannot create the type of function you want using the online button creator. The online button creator just creates basic item button code. As you want a minimum amount, this requires some custom scripting to manage the logic.
Just to give you an idea on how to approach what may work for you, check out the example below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Button Example Code</title> <!-- START META TAG SECTION --> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta http-equiv="Content-Language" content="en"> <!-- END META TAG SECTION --> <!-- Start of Scipt --> <script type="text/javascript"> <!-- var maxamt = 40.00; var minamt = 15.00; function Dollar (val) { // force to valid dollar amount var str,pos,rnd=0; if (val < .995) rnd = 1; // for old Netscape browsers str = escape (val*1.0 + 0.005001 + rnd); // float, round, escape pos = str.indexOf ("."); // should be one, but OK if not if (pos > 0) str = str.substring (rnd, pos + 3); return str; // return valid string } function ChkAmt (obj1) { // check any qty limits on items var amt,qty; amt = obj1.amount.value; qty = obj1.quantity.value; amt = amt*1 * qty*1; if (amt > maxamt) { alert ("You cannot order more than $" + Dollar(maxamt)); ClrAmt (); return false; } if (amt < minamt*1) { alert ("You must order at least $" + Dollar( minamt)); ClrAmt (); return false; } ClrAmt (); return true; } function ClrAmt () { // Clear out the limits maxamt = 40.00; minamt = 15.00; } //--> </script> <!-- End of Scipt --> </head> <body> <!-- START SAMPLE CODE SECTION --> <!-- PARAGRAPH 1 --> Required Fields Script Examples <br><br> This example sets a minimum amount of $15.00 and a maximum amount of $40.00 that may be ordered. You may set either, neither, or both, limits. <br><br> Widget Book - $10 each <br><br> <!-- Start of Form --> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="this.target = 'paypal'; maxamt=40.00; minamt=15.00; if (!ChkAmt (this)) return false;"> <!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable. --> <input type="hidden" name="cpp_header_image" value="https://www.yourwebsite.com/logo.jpg"> <input type="hidden" name="cmd" value="_xclick"> <!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID --> <input type="hidden" name="business" value="your email address"> <input type="hidden" name="item_name" value="Widget Book"> <input type="hidden" name="item_number" value="WB-001"> <input type="hidden" name="no_shipping" value="2"> <input type="hidden" name="amount" value="10.00"> <!-- Replace value with the web page you want the customer to return to after a successful transaction --> <input type="hidden" name="return" value="http://www.yourwebsite.com/ThankYou.html"> <!-- Replace value with the web page you want the customer to return to after item cancellation --> <input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/Cancel.html"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="country" value="US"> <input type="hidden" name="button_subtype" value="products"> <input type="hidden" name="no_note" value="0"> <input type="hidden" name="cn" value="Add special instructions to the seller:"> <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted"> Quantity: <input type="text" name="quantity" size="3"> <br><br> <input type="reset" name="reset" value="Reset"> <br><br> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_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> <!-- End of Form --> <!-- END BUTTON EXAMPLES --> <!-- END SAMPLE CODE SECTION --> <br><br><br><br> <hr align="left" width="50%" noshade> <br><br> NOTES: <br> In order to test the code, you must replace the "business" value variable with your PayPal Email Address or your Merchant Account ID. </body> </html>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.