I want to add an "accept terms and conditions" checkbox

Ximena_Andrea
Contributor
Contributor

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? 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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