I want to add an "accept terms and conditions" checkbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there!
Is there any way to add a button that forces the client to accept the terms and conditions of service before he presses the button to pay in paypal?
The code I'm using (which only has the paypal smart button for paying) is this one:
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="https://www.paypal.com/sdk/js?client-id=AbxfgDqn8Crz1o2Xc6XcNLGJvEXdtv0nIeZIB__4_GiKkLk8e1FFcx0Ieebq...>
<div class="paypal-button" id="paypal-plan-container"></div>
<script>
paypal.Buttons({
createSubscription: function(data, actions) {
return actions.subscription.create({
'plan_id': 'some plan ID P-40U91003BB360305TLW7W63Q'
});
},
onApprove: function(data, actions) {
alert(data.subscriptionID);
}
}).render('#paypal-plan-container');
</script>
I'm just learning programming, and can't figure out some way to force people to check the button before the can press the Paypal button.
can someone please help me?

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Disable shipping address in Pay with Credit or Debit card button integration in SDKs
- Advanced Payments checkbox not showing up in sandbox app after completing the sandbox onboarding in REST APIs
- Shipping options are not appearing in my cart through link or button. in PayPal Payments Standard
- Integrate PayPal Payments with WooCommerce? in PayPal Upgrade Community
- Hide shipping address in Debit/Credit card form in PayPal Payments Standard