woocommerce change order status after response gpwebpay

Really need help! Write payment plugin for woocommerce. The next task is to Redirect to the page of payment system gpwebpay.cz , where the customer makes the payment after which it redirects to a thank you page or a page failure in the event of non-payment. Redirection is the method process_payment, in array

return array(
'result' => 'success',
'redirect' => $url

Where $url is the address to which the client is redirected with all the necessary parameters( order number, store number and so on)
Question – where and how then get response from the server and based on the response software will automatically change the order status? disposition action to change the status of the order thankyou page not suitable. It is necessary to change the order status in the payment module.

Read more here: woocommerce change order status after response gpwebpay

Leave a Reply

Your email address will not be published. Required fields are marked *