“Custom” validations at checkout before creating the PayPal order
-
Hi,
I am having the following problem:
I have a custom code (snippet) on my page, which verifies if certain conditions are met in the ordered items when clicking “Place order”. For this I am using the “woocommerce_checkout_process” hook. If the conditions are not met, it does not allow the order to be placed and displays an error message.
What happens? My code works perfectly with all payment methods, except PayPal. I was reviewing their documentation but they only have a basic validation of the data from the form, plus we did not add them.
I wonder, how can I correct this problem?
Is there any way that when they click the paypal buttons my snippet is executed?
Stay tuned to your comments.
Thank you.
- The topic ‘“Custom” validations at checkout before creating the PayPal order’ is closed to new replies.