-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkout validation for other fields #861
Comments
Seems part of #513 Also https://github.com/woocommerce/woocommerce-paypal-payments/wiki/Actions-and-Filters doesn't mention how to add fields for validations. The filter:
|
Hi @Mte90, I've opened a similar issue (#813) with some screenshots to show how the problem already occurs for the WC fields themselves. Also in our case we add custom fields and custom validations, using WC hooks. I've also tried to talk with PayPal Tech Support (even with an Integration Engineer) but with no success so far… Thank you for adding more details. |
It is currently not possible to perform the WooCommerce validation on the button click. For compatibility reasons, it has to happen after the PayPal order was created. But the basic validation only triggers on fields with the |
So this means that this official plugin is pushed to all the Woocommerce users but it is not possible for other plugins to add support to validate fields, just because this plugin alter the whole woocommerce checkout experience. Very sad but is a problem for the people outside Automattic that does business with that. |
Cool but I don't have anymore a test environment. I used a customer one in production (I know) as this plugin requires to you for testing a paypal account also if you are working locally. |
You could also send the team a private message from here: https://paypal.inpsyde.com/docs/request-support/ |
For me, version 2.0.0 doesn't change anything. The built-in checkbox for Terms and Conditions is validated correctly (the PayPal popup opens for a second, then it closes and the checkout page scrolls up to the error message which says that the checkbox is required). But a custom checkbox is added for Data Privacy Regulations via this snippet, that is not validated when a PayPal Payments option is chosen: We have got also some products that can't be shipped to all countries, therefore we are using the plugin "Advanced Shipping Validation for WooCommerce", which also doesn't work when a PayPal Payments option is chosen: Is it possible to get this fixed soon? Edit: |
The terms & conditions checkbox behavior when the Germanized plugin is enabled should be resolved in #1016 or with this test package. |
Hello all, this issue should have been resolved after yesterday's release (2.0.1). Please update the plugin and see if it now functions correctly. Since we only handle development activities via GitHub I will ask you to reach out to the support team directly for more guidance in case the issue is still not resolved for you. For now, I will close this thread. Kind regards, |
I am still getting issues reported with this plugin using mine that was working with the native woocommerce paypal payments. I use those filters for fields validation:
I created a function to get the values from AJAX or from a classic request:
Later I use |
Hi @Mte90 Alternatively, the hook If such a change is not a viable solution for you, then please get in touch with the support team with a download link to your plugin and we would be happy to investigate what it would take to potentially improve the compatibility. Thanks! |
Describe the Bug
I have a plugin (that we sell too) that add new fields in the checkout.
Right now for the validation I am doing it by php as there is an AJAX request so with other gateway everything works fine because this AJAX request is executed.
Instead this plugin does it only by pure JS so the AJAX validation is not happening at all breaking the UX and also backward compatibility like in our case and I guess also for others.
woocommerce-paypal-payments/modules/ppcp-button/resources/js/button.js
Line 36 in 7f566c6
So how I was should be able to add support for this plugin anyway? I need the AJAX request woocommerce (
wc-ajax=checkout
) as I can't do it by JS because I do also validations to external services...I wasn't able to find any documentation and so on. Maybe there is some field validation happening after the payment for user cases like mine?
The text was updated successfully, but these errors were encountered: