WordPress action hook
gform_post_payment_status
Fired by 12 WordPress plugins, running on 490+ sites between them.
How to use gform_post_payment_status
It's an action: your callback runs at that point and receives 8 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'gform_post_payment_status', function( $config, $entry, $strtolower, $transaction_id, $arg5, $Total, $arg7, $arg8 ) {
// Your code runs here.
}, 10, 8 );Argument names come from Zibal Payment Gateway for Gravity Forms's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
12 plugins that fire gform_post_payment_status
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Zibal Payment Gateway for Gravity Forms300+ installs
do_action( 'gform_post_payment_status', $config, $entry, strtolower($Status), $transaction_id, '', $Total, '', '' )zibal.php:3757 -
Gateway AqayePardakht for Gravity Forms100+ installs
do_action( 'gform_post_payment_status', $config, $entry, strtolower($Status), $transaction_id, '', $Total, '', '' )aqayepardakht.php:2392 -
Notch Pay30+ installs
do_action( 'gform_post_payment_status', $entry, ['transaction_id' => $reference, 'amount' => $amount, 'payment_status' => 'Paid'], $formId )includes/GravityForms/NotchPayAddon.php:161 -
Paytm Gravity Forms10+ installs
do_action( 'gform_post_payment_status', $config, $entry, $status, $transaction_id, $amount )paytm-form.php:2191 -
Mijireh Checkout for Gravity Forms10+ installs
do_action( 'gform_post_payment_status', $config, $entry, $status, $transaction_id, $amount )mijireh.php:2120 -
Vandar.io Gravityform10+ installs
do_action( 'gform_post_payment_status', $config, $entry, strtolower( $Status ), $transaction_id, '', $Total, '', '' )vandar.php:2431 -
Simple Chase E-xact for Gravity Forms10+ installs
do_action( 'gform_post_payment_status', $feed, $entry, $status, $transaction_id, '', $amount, $pending_reason, $reason )class-gf-exact.php:765 -
MyChoice2Pay Gravity Forms Add-on10+ installs
do_action( 'gform_post_payment_status', $feed, $entry, $status, $transaction_id, $subscriber_id, $amount )class_gf_mc2p.php:721 -
GoUrl Bitcoin Altcoin Payment Gateway For Gravity Forms10+ installs
do_action( 'gform_post_payment_status', $feed, $entry, $status, $transaction_id, $amount )class-gf-gourl.php:767 -
WajubFewer than 10 installs
do_action( 'gform_post_payment_status', $entry, ['transaction_id' => $paymentId, 'amount' => $amount, 'payment_status' => 'Paid'], $formId )includes/GravityForms/WajubAddon.php:524 -
OxaPay Crypto Payment Gateway for Gravity FormsFewer than 10 installs
do_action( 'gform_post_payment_status', $config, $entry, 'Completed', $trackId, 0, $amount, '', '' )oxapay-gateway-payment-for-gravity-forms.php:1163 -
Gravity Forms Borgun Add-OnFewer than 10 installs
do_action( 'gform_post_payment_status', $feed, $entry, $status, $transaction_id, $subscriber_id, $amount, $pending_reason, $reason )class-gf-borgun.php:1020
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.