gform_paypalpaymentspro_verifypeer

Description

Allows peer verification to be bypassed.

Usage

add_filter( 'gform_paypalpaymentspro_verifypeer', 'your_function_name', 10, 1 );

Parameters

  • $is_enabled bool

    Indicates if the CURLOPT_SSL_VERIFYPEER setting is enabled, which allows peer verification to be bypassed. True enables peer verification, false disables.

Examples

add_filter( 'gform_paypalpaymentspro_verifypeer', 'disable_verification', 10, 1 );
function disable_verification( $is_enabled ){
	return false;
}

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in Gravity Forms PayPal Payments Pro v 2.2.

Source Code

This filter is located in GFPayPalPaymentsPro::post_to_payflow() in class-gf-paypalpaymentspro.php.