Title: Advanced Card Processing payment complete hook
Last modified: May 24, 2025

---

# Advanced Card Processing payment complete hook

 *  Resolved [ltrost](https://wordpress.org/support/users/ltrost0910gmail/)
 * (@ltrost0910gmail)
 * [1 year ago](https://wordpress.org/support/topic/advanced-card-processing-payment-complete-hook/)
 * What hook is fired after successful payment is complete? This snippet seems to
   confirm that this is not being fired after it worked.
 * add_action(‘woocommerce_payment_complete’, function ($order_id) {
   error_log(“
   TESTING woocommerce_payment_complete triggered for order #$order_id”);});
 * Further testing reveals:
 * My setup requires that I have orders set to Processing (to allow downloads and
   other things for virtual products) if the customer has chosen Cash as the gateway.
   I have made adjustments so that later they can go to use the Pay Now button if
   they want to change to pay online instead. When using that option, since the 
   order is already in Processing, no payment_complete is fired, so the order is
   never changed to completed. Is there a different hook I can look at to see if
   payment was completed?
 * I resolved this by using the woocommerce_before_pay_action to change the order
   to on-hold, then it seems to work.
    -  This topic was modified 1 year ago by [ltrost](https://wordpress.org/support/users/ltrost0910gmail/).
    -  This topic was modified 1 year ago by [ltrost](https://wordpress.org/support/users/ltrost0910gmail/).

The topic ‘Advanced Card Processing payment complete hook’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ltrost](https://wordpress.org/support/users/ltrost0910gmail/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/advanced-card-processing-payment-complete-hook/)
 * Status: resolved