Are you using WooCommerce on your store and looking to do something after a successful payment on your store? The WooCommerce hook “woocommerce_payment_complete” might be helpful to you. Below is the usage of the hook: With the parameter, $order_id you
WooCommerce hook after successful payment :)
