Description
This filter is used to cancel to IPN processing.
Usage
add_filter("gform_paypal_pre_ipn", "cancel_ipn", 10, 4);
Parameters
$cancel
- (bool) False by default. Return as true to cancel IPN processing.
$_POST
- (array) The $_POST array posted by the PayPal IPN.
$entry
- (Entry Object) The entry from which the transaction the IPN is responding to was submitted.
$config
- (array) The PayPal feed configuration data used to process the entry the IPN is responding to.
Examples
This example shows how to return a false value and cancel the IPN processing.
add_filter("gform_paypal_pre_ipn", "cancel_ipn");
function cancel_ipn($cancel){
return true;
}
Source Code
This filter is located in paypal.php