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:

functions.php
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.

  1. Zibal Payment Gateway for Gravity Forms icon Zibal Payment Gateway for Gravity Forms300+ installs do_action( 'gform_post_payment_status', $config, $entry, strtolower($Status), $transaction_id, '', $Total, '', '' ) zibal.php:3757
  2. Gateway AqayePardakht for Gravity Forms icon Gateway AqayePardakht for Gravity Forms100+ installs do_action( 'gform_post_payment_status', $config, $entry, strtolower($Status), $transaction_id, '', $Total, '', '' ) aqayepardakht.php:2392
  3. Notch Pay icon Notch Pay30+ installs do_action( 'gform_post_payment_status', $entry, ['transaction_id' => $reference, 'amount' => $amount, 'payment_status' => 'Paid'], $formId ) includes/GravityForms/NotchPayAddon.php:161
  4. Paytm Gravity Forms icon Paytm Gravity Forms10+ installs do_action( 'gform_post_payment_status', $config, $entry, $status, $transaction_id, $amount ) paytm-form.php:2191
  5. Mijireh Checkout for Gravity Forms icon Mijireh Checkout for Gravity Forms10+ installs do_action( 'gform_post_payment_status', $config, $entry, $status, $transaction_id, $amount ) mijireh.php:2120
  6. Vandar.io Gravityform icon Vandar.io Gravityform10+ installs do_action( 'gform_post_payment_status', $config, $entry, strtolower( $Status ), $transaction_id, '', $Total, '', '' ) vandar.php:2431
  7. Simple Chase E-xact for Gravity Forms icon 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
  8. MyChoice2Pay Gravity Forms Add-on icon 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
  9. GoUrl Bitcoin Altcoin Payment Gateway For Gravity Forms icon 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
  10. Wajub icon 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
  11. OxaPay Crypto Payment Gateway for Gravity Forms icon 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
  12. Gravity Forms Borgun Add-On icon 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.