Description
Action hook used by Authorize.Net that fires after the payment has been captured.
Usage
add_action( 'gform_authorizenet_post_capture', 'your_function_name', 10, 6 )
Parameters
- $is_authorized bool
Indicates if the payment was authorized.
-
$amount string
The payment amount captured.
-
$entry Entry Object
The current entry.
-
$form Form Object
The current form.
-
$config Feed Object
The feed configuration.
-
$response object
The capture response from Authorize.Net.
Examples
add_action( 'gform_authorizenet_post_capture', 'notify_of_capture', 10, 6 ); function notify_of_capture( $is_authorized, $amount, $entry, $form, $config, $response ){ GFCommon::send_email( '[email protected]', '[email protected]','','','testing', 'Funds were captured.'); }
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFAuthorizeNet::process_capture() in gravityformsauthorizenet/class-gf-authorizenet.php.