Title: Hook into Payment
Last modified: January 23, 2019

---

# Hook into Payment

 *  Resolved [bootlegstudios](https://wordpress.org/support/users/bootlegstudios/)
 * (@bootlegstudios)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hook-into-payment/)
 * Is there a hook that can be used when the payment is successful? We need to run
   a couple custom scripts when a payment is made.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [bfl](https://wordpress.org/support/users/bfl/)
 * (@bfl)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hook-into-payment/#post-11128105)
 * Hey [@bootlegstudios](https://wordpress.org/support/users/bootlegstudios/). I’ll
   release an update soon that will have a hook for this.
 *  Plugin Author [bfl](https://wordpress.org/support/users/bfl/)
 * (@bfl)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hook-into-payment/#post-11146331)
 * Hey [@bootlegstudios](https://wordpress.org/support/users/bootlegstudios/). I’ve
   released an update. You can now use the `woo_mp_payment_complete` action hook:
 *     ```
       add_action( 'woo_mp_payment_complete', function ( $order ) {
           echo 'A payment was made for order #' . $order->get_order_number() . '.';
   
           // Run your scripts here...
       }, 10, 1 );
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hook into Payment’ is closed to new replies.

 * ![](https://ps.w.org/woo-mp/assets/icon-128x128.png?rev=1596816)
 * [Backend Payments for WooCommerce](https://wordpress.org/plugins/woo-mp/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-mp/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-mp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-mp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-mp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bfl](https://wordpress.org/support/users/bfl/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/hook-into-payment/#post-11146331)
 * Status: resolved