The gform_authorizenet_post_capture action hook is used by Authorize.Net and 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.
More information
See Gravity Forms Docs: gform_authorizenet_post_capture
Examples
Notify of Capture
Send an email notification when funds are captured.
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.'); }