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

This runs for both PayPal & Stripe payments.

 

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

Run custom PHP after payment

KB Article rating: 2.0 based on 1 ratings

Join Our Newsletter

Be the first to know about our new plugins, features, and exclusive promotions.