aifaiz / ipay88-woocommerce

Malaysian ipay88 woocommerce payment gateway plugin
https://hamizulfaiz.com/post/plugin-ipay88-payment-gateway-untuk-woocommerce
GNU General Public License v3.0
13 stars 8 forks source link

Order Status showing Completed after payment #26

Open ilovedenis opened 4 years ago

ilovedenis commented 4 years ago

Hello Aifaiz,

thanks so much for this plugin! But I have been wondering why is the order status showing "Completed" if a customer use iPay88 Payment gateway to pay their order? Instead of "Processing" like all the other payment gateway.

Can you try to fix this?

aifaiz commented 4 years ago

Hey @ilovedenis

Thanks!

the status is set when the gateway is processing the payment. you can try adjust the "status" to your liking manually in the code on this file

set it to wc-processing to make the order to be "processing" when the place order process is called.

refer to their best practice here