I am using the one-step checkout and Paypal payment method. On clicking the PayPal button on the checkout page, I want to show a custom message if the terms and conditions checkbox is not checked to notify the customer to check the terms and conditions checkbox. How can I do this? I could not find the click event for the Paypal button.

1 Answer 1


Please check this link
How to add validation on checkbox , select option and text fields in magento 2?
I hope it will solve your issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.