Run custom PHP after payment

In the Pro version in /includes/public_ipn.php there is a WordPress hook which you can use to run your own PHP functions – the hook is called: cf7pp_payment_successful

 

Hook:

do_action(‘cf7pp_payment_successful’, $post_id, $txn_id);

 

Example:

function test_function($post_id, $tnx_id) {
}
add_action(“cf7pp_payment_successful”, “test_function”, 10, 2);


Rate this Article