Answer the question
In order to leave comments, you need to log in
Where are form handlers in Wordpress/Woocommerce?
Since I’m used to developing on self-written hooks and the like, I don’t rummage, but I roughly understood that they can be changed in functions through action, filter. Now I am implementing the API of payment by card. So I can’t figure out where to find the PHP code that processes the Checkout form. The idea is that I just find the same hook, copy it to functions and change it for myself. The old script is a standard Wookomers one, redirects to the payment page of the Wookomers plugin itself, but I need it to be redirected to the bank page with a check when submitting the form with the choice of the payment method "By bank card".
Answer the question
In order to leave comments, you need to log in
So it doesn't work. WooCommerce has a Payment API that allows you to create your own gateways. In short, you need to extend the WC_Payment_Gateway class and override its methods.
Here are the references:
- https://docs.woocommerce.com/document/payment-gate...
- https://rudrastyh.com/woocommerce/payment-gateway-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question