Is there a way to make the minimum amount you're able to receive ($0.01) higher?

kylemack2009
New Community Member

What im asking is; can I make the minimum amount my account is able to receive higher than the $0.01? That if anyone were to send me anything less than $5.00 (if it's able to be changed to a higher limit) it wouldnt go through? 

Login to Me Too
1 REPLY 1

Quandary
Advisor
Advisor

Yes, however, you have to custom code the item button and use a script to manage the logic.  There's no options in your Business account or the online button creator to generate the type of code you have in mind.   See the example below - it's a Donation item button with a custom script to manage the logic and pass the results to PayPal.  The minimum account you can Donate is $5.00 - anything less is not permitted.

<!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 Script --> 
<script type="text/javascript">
<!--
var maxamt = 9999.00;
var minamt = 5.00;
function ChkAmt (obj1) {  // check any qty limits on items
var amt;
  amt = obj1.amount.value;
  if (isNaN (amt)) {
    alert ("Enter a valid number for amount!");
    ClrAmt ();            // always clear the values!
    return false;
  }
  
//  if (amt > maxamt) {
//    alert ("You cannot order more than " + maxqty + " items!");
//    ClrQty ();
//    return false;
//  }  

  if (amt < minamt) {
    alert ("You must donate at least $" + minamt + "!");
    ClrAmt ();
    return false;
  }
  ClrAmt ();
  return true;
}

function ClrAmt () {  // Clear out the limits
  maxamt = 9999.00;  //not used unless you want to set some max amount.
  minamt = 5.00;   //set the minimum amount for a donation
}

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
}
//-->
</script>
<!-- End of Script --> 



</head>

<body>

<!-- START SAMPLE CODE SECTION -->


<!-- PARAGRAPH 1 -->
Donation Examples

<br><br>

Minimum Amount Script.

<br><br>

Widget Donation

<br><br>

<!-- Start of Form --> 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" 
onsubmit="this.target = 'paypal'; if(!ChkAmt (this)) return false;">
Please Enter Donation Amount:&#160;&#160;
<input type="text" name="amount" size="6">&#160; ($5.00 Minimum)
<input type="hidden" name="cmd" value="_donations">
<!-- Replace "business" value with your PayPal Email Address or Account ID -->
<input type="hidden" name="business" value="your email address">
<input type="hidden" name="item_name" value="Widget Donation">
<input type="hidden" name="item_number" value="WD-001">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="shipping" value="0.00">
<input type="hidden" name="tax" value="0.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<!-- 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="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<br><br>
<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>
<!-- End of Form -->



<!-- END BUTTON EXAMPLES -->



<!-- END SAMPLE CODE SECTION -->

<br><br>


<br><br><br><br>
<hr align="left" width="50%" noshade>
<br><br>
NOTES:
<br>
In order to test the code, you must replace the &quot;business&quot; value variable with your PayPal Email Address or Account ID.


</body>
</html>

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.