Woocommerce submit to payment gateway


Staff member
I am developing wordpress plugin for Woocommerce payment.
As I can see I have to extend <strong>WC_Payment_Gateway</strong> and implement method "<strong>process_payment</strong>". I have looked into some examples and found that this method should return something like:

    'result'   =&gt; 'success',
    'redirect' =&gt; $redirectUrl

and then control is returned to <strong>WC_Checkout</strong> which will redirect to provided url.<br>
Problem is that our payment provider requires to <strong>submit</strong> form to his page instead of <strong>redirect</strong>. Having that API restriction in mind I am asking what is the best way to connect with my payment provider?<br>
Is there a way to submit form instead of redirection?