Description
Allows the API information to be modified before sending to PayPal Payments Pro.
Usage
1 | add_filter( 'gform_paypalpaymentspro_api_before_send' , 'your_function_name' , 10, 2 ); |
Parameters
Examples
1 2 3 4 5 | add_filter( 'gform_paypalpaymentspro_api_before_send' , 'change_paypal_endpoint' , 10, 2 ); function change_paypal_endpoint ( $api_info , $form_id ){ return $api_info ; } |
Placement
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.