DescriptionUsageParametersExamplesSource Code
Description
Triggers right after the payment callback occurs when payments are processed.
Usage
1add_action( 'gform_post_payment_callback', 'my_function', 10, 3 );
Parameters
$entry Entry Object
The entry object that was created.
$action array
The action that occurred. Contains things such as the amount, what occurred, and the transaction ID.
12345678910$action = array( 'type' => '', 'amount' => '', 'transaction_type' => '', 'transaction_id' => '', 'subscription_id' => '', 'entry_id' => '', 'payment_status' => '', 'note' => '',);
$result Mixed
The result of the payment, such as payment success or failure.
Examples
1234function my_function() { //Do something here}add_action( 'gform_post_payment_callback', 'my_function', 10, 3 );
Source Code
1do_action( 'gform_post_payment_callback', $entry, $action, $result );
This action hook is located in GFPaymentAddOn::process_callback_action() in includes/addon/class-gf-payment-addon.php.