gform_post_payment_completed

gform_post_payment_completed

DescriptionUsageParametersExamplesSource Code

Description
Triggers when a payment has been completed through the form.
Usage
1add_action( 'gform_post_payment_completed', 'my_function', 10, 2 );

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'             => '',);

Examples
1234function my_function() {    //Do something here}add_action( 'gform_post_payment_completed', 'my_function', 10, 2 );
Source Code
1do_action( 'gform_post_payment_completed', $entry, $action );
This action hook is located in GFPaymentAddOn::complete_payment() in includes/addon/class-gf-payment-addon.php.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註