• Resolved bootlegstudios

    (@bootlegstudios)


    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

    (@bfl)

    Hey @bootlegstudios. I’ll release an update soon that will have a hook for this.

    Plugin Author bfl

    (@bfl)

    Hey @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.