CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 01:36:52 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=yGIn%2B7qsso4M42%2FMIUuWTAy7oZX16GqTWNB8qITzNvndwmnlQ3HcC%2FJGFmCV6vnWKVOX%2FTFwwxoJkJLDMfHve2vV2nayV9EHVbxPippBVR88lxqF"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98d2de649954c169-BLR
gform_post_payment_callback - Gravity Forms Documentation
gform_post_payment_callback
Description
Triggers right after the payment callback occurs when payments are processed.
Usage
add_action( 'gform_post_payment_callback', 'my_function', 10, 3 );
Parameters
Parameter | Type | Description |
---|---|---|
$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. See sample array structure below. |
$result | mixed | The result of the payment, such as payment success or failure. |
Sample $action
$action = array(
'type' => '',
'amount' => '',
'transaction_type' => '',
'transaction_id' => '',
'subscription_id' => '',
'entry_id' => '',
'payment_status' => '',
'note' => '',
);
Possible values for type are:
- complete_payment
- refund_payment
- fail_payment
- add_pending_payment
- void_authorization
- create_subscription
- cancel_subscription
- expire_subscription
- add_subscription_payment
- fail_subscription_payment
- fail_create_subscription
Examples
function my_function( $entry, $action, $result ) {
// Do something here.
}
add_action( 'gform_post_payment_callback', 'my_function', 10, 3 );
Source Code
do_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.