Update order status based on IPN status
-
Hi,
Just a simple guide of what to use in this case:
Once the user pays by PayPal it returns him to woocommerce thank you page.
What would be the best approach to check if IPN status is completed and then if it is, change that order status to “paid”.Should I set it up through woocommerce_thankyou hook and then call paypal_ipn_for_wordpress_payment_status_completed inside it or should I add only paypal_ipn_for_wordpress_payment_status_completed and inside that one call the orders and set the status.
By the way I tried both methods with no working solution.
I know I’m doing something wrong for sure.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Update order status based on IPN status’ is closed to new replies.