gform_post_payment_transaction

gform_post_payment_transaction

DescriptionUsageParametersExamplesSource Code

Description
Triggered after a payment transaction is created within Gravity Forms.
Usage
1add_action( 'gform_post_payment_transaction', 'my_function', 10, 6 );

Parameters

$txn_id integer
The transaction ID associated with the payment.

$entry_id integer
The ID of the entry that was created.

$transaction_type string
The type of transaction that was made.

$transaction_id integer
The transaction ID of the newly created transaction.

$amount string
The total amount of the payment.

$is_recurring bool
Returns true if recurring. Otherwise, false.

Examples
1234function my_function() {    //Do something here}add_action( 'gform_post_payment_transaction', 'my_function', 10, 6 );
Source Code
1do_action( 'gform_post_payment_transaction', $txn_id, $entry_id, $transaction_type, $transaction_id, $amount, $is_recurring );
This action hook is located in GFPaymentAddOn::insert_transaction() in includes/addon/class-gf-payment-addon.php.

發表回覆

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