Buy Now Button with Terms of Agreement Check Box

MSWD
New Community Member

I would like to have a buy now button with a terms of agreement check box.  Is there any way to have this on Paypal? 

Ideally the buyer would have to check the box agreeing to the terms of agreement before they could submit the buy now button.

Login to Me Too
1 REPLY 1

snowshoe
Frequent Advisor
Frequent Advisor

Yes, however, the item button code requires a script to validate the selection.  As the online button creator cannot generate scripts, this has to be done manually.

 

See the example below for some ideas, there's a Buy Now and Add to Cart you can check out.

 

<!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 1 -->
<script type="text/javascript">
<!--
function CheckForm(obj1) { 

 if (!obj1.accept.checked){
  alert ("You must accept our Terms and Conditions!");
  return false;
 }
 return true;
}
//-->
</script>
<!-- End of Script 1 -->


<!-- Start of Script 2 -->
<script type="text/javascript">
<!--
function CheckForm2(obj1) { 

 if (!obj1.accept.checked){
  alert ("You must accept our Terms and Conditions!");
  return false;
 }
 return true;
}
//-->
</script>
<!-- End of Script 2 -->



</head>

<body>

<!-- START SAMPLE CODE SECTION -->


<!-- PARAGRAPH 1 -->
Required Fields Script Examples

<br><br>

Agree to Terms Checkbox - Buy Now Button and Add to Cart.

<br><br><br>

Widget Concert Tickets - $25.00 ea

<!-- Start of Form 1 -->

<form name="paypal" target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="return CheckForm(this);">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable in your View Cart code. -->
<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 Account ID -->
<input type="hidden" name="business" value="your email address">
<input type="hidden" name="item_name" value="Widget Concert Ticket">
<input type="hidden" name="item_number" value="WCT-0001">
<input type="hidden" name="amount" value="25.00">
<input type="hidden" name="on0" value="Note">
<input type="hidden" name="os0" value="I accept the Terms and Conditions">
<input type="hidden" name="on1" value="Additionally">
<input type="hidden" name="os1" value="I understand that my purchse is not refundable.">
<!-- 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="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">
Note, Tickets are not refundable.
<br><br>            
Yes, I Accept the Terms and Conditions:&#160;&#160;<input name="accept" type="checkbox" value="0">
<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 1 -->


<br><br>
<hr align="left" width="50%" noshade>
<br><br>


Widget Concert Tickets - $25.00 ea

<br>

<!-- Start of Form 2 -->
<!-- Note: target="_self" was replaced with the variable target="_self" -->
<!-- Note: shopping_url also added to code -->
<!-- These two changes allow better functionality with IE and Firefox --> 
<form name="paypal" target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="return CheckForm2(this);">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable in your View Cart code. -->
<input type="hidden" name="cpp_header_image" value="https://www.yourwebsite.com/logo.jpg">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<!-- 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 Concert Ticket">
<input type="hidden" name="item_number" value="WCT-0001">
<input type="hidden" name="amount" value="25.00">
<input type="hidden" name="on0" value="Note">
<input type="hidden" name="os0" value="I accept the Terms and Conditions">
<input type="hidden" name="on1" value="Additionally">
<input type="hidden" name="os1" value="I understand that my purchse is not refundable.">
<!-- Replace value with the web page you want the customer to return to -->
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/Required_Fields_07.html">
<!-- 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="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-ShopCartBF:btn_cart_LG.gif:NonHosted">
Note, Tickets are not refundable.
<br><br>            
Yes, I Accept the Terms and Conditions:&#160;&#160;<input name="accept" type="checkbox" value="0">
<br>
<br>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_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 2 -->

<br>

<!--  Start of View Cart Button Code  -->
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable in your View Cart code. -->
<input type="hidden" name="cpp_header_image" value="https://www.yourwebsite.com/logo.jpg"> 
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="display" value="1">
<!-- Replace "business" value with your PayPal Email Address or Account ID -->
<input type="hidden" name="business" value="your email address>
<!-- Replace value with the web page you want the customer to return to -->
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/Required_Fields_07.html">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_viewcart_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 View Cart Button Code  -->

Note: View Cart only works with Add to Cart


<!-- 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 &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.