Okay
  Print

Why there is no ongoing service or project on hiring

Why there is no ongoing service or project on hiring

We have used WooCommerce for the packages and hiring process and have used below the hook

  • woocommerce_payment_complete 

Once any payment arrived successfully then the above WooCommerce hook trigger and move the project or service to ongoing status. If any payment gateway failed to run below WooCommerce order function on payment success then it will not move the project or service to ongoing

  • $order->payment_complete()

Most payment methods use the above function to process the order.

Any gateways that default to On Hold or Pending Payment instead of Processing will not process the order against packages update or hiring.

Like any offline payment gateway like COD, Check Payment or Bank transfer will not move the order to ongoing and when the admin will complete the order from back-end then it will move to ongoing and the freelancer balance will be updated

To make sure of this, you can try to use the Stripe Credit card payments plugin, which sends the status processing and all the functions of our theme seem to be working fine.