Description
Allows the PayPal IPN URL to which data is being posted to be modified.
Usage
1 | add_filter( 'gform_paypal_ipn_url' , 'your_function_name' , 10, 1 ); |
Parameters
- $url string
The IPN URL.
Examples
1 2 3 4 5 | add_filter( 'gform_paypal_ipn_url' , 'change_ipn_url' , 10, 1 ); function change_ipn_url( $url ){ //send all requests to the sandbox } |
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFPayPal::verify_paypal_ipn() in gravityformspaypal/class-gf-paypal.php.