Hello @ariserise
I had a little chat with our developers, and it seems that our custom validation does not provide any event that can be triggered externally.
checkout_error is triggered by WooCommerce JavaScript in the Ajax handler, but we don’t do it. It seems the timing of this event does not line up with ours. A solution for this would be for us to trigger the same event in our AJAX handlers to match WooCommerce behavior.
I will open a bug to have this investigated and link this thread to it, so you can get updated once we have any update or fix available for you.
Kind regards,
Joost
The checkout_error event mentioned above will be included in one of the next updates, probably sometime in June. If you are interested, you could give it a try with the changes from this PR: https://github.com/woocommerce/woocommerce-paypal-payments/pull/1384
If you give it a try, feedback is much appreciated.
Thanks!
Kind regards,
Niklas