I need to change the order status of the woocommerce order, from pending to processing, automatically when receive the payment:
I use this function: