gform_paypalpaymentspro_log_api_request

Description

Controls whether the API request sent to PayPal is logged.

Usage

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

Parameters

  • $log_request bool

    True to log the request, false to not. False by default.

Examples

add_filter( 'gform_paypalpaymentspro_log_api_request', 'log_request', 10, 1 );
function log_request( $log_request ){
  return true;
}

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

Source Code

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