Create an order working different way from web and API
-
I have integrated core woocommerce API in one of my websites. While placing an order from the website – the order status – “Pending payment” and once payment processed the order status should change to “completed” and email trigger to admin.
However, if user placing the order from the mobile app using create an order REST API, The order status – “Processing” and email shoot to admin about the order. Then user processing payment or cancel payment, the order status update accordingly.
But due to this weird behavior, there is unnecessary email triggered to admin while placing an order from mobile without complete the payment and client getting worried about this. Can you please suggest any hook which helps to send the proper order status for mobile API. By this way, Web and the Mobile app should work properly.
- The topic ‘Create an order working different way from web and API’ is closed to new replies.