We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This JS, enqueued in add-payment-method page, clear out all notices added via wc_add_notice():
wc_add_notice()
woocommerce-paypal-payments/modules/ppcp-save-payment-methods/resources/js/add-payment-method.js
Lines 50 to 55 in f628cff
specifically
errorHandler.clear();
Notice appears for a second — due to the setTimeout — and then cleared.
Use following test to create a custom error notice (in a real case, this could be from another plugin):
add_filter( 'woocommerce_add_payment_method_form_is_valid', function() { wc_add_notice( 'Test custom error notice', 'error' ); return false; } );
Go to add-payment-method page and see it appears for a split second.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
This JS, enqueued in add-payment-method page, clear out all notices added via
wc_add_notice()
:woocommerce-paypal-payments/modules/ppcp-save-payment-methods/resources/js/add-payment-method.js
Lines 50 to 55 in f628cff
specifically
Notice appears for a second — due to the setTimeout — and then cleared.
To Reproduce
Use following test to create a custom error notice (in a real case, this could be from another plugin):
Go to add-payment-method page and see it appears for a split second.
The text was updated successfully, but these errors were encountered: