Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Documentation
Docs
Developer Documentation
Merge requests
!551
Add in documentation of new hook hook_civicrm_postIPNProcess
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add in documentation of new hook hook_civicrm_postIPNProcess
github/fork/seamuslee001/dev_financal_33
into
master
Overview
1
Commits
0
Pipelines
0
Changes
0
Merged
homotechsual
requested to merge
github/fork/seamuslee001/dev_financal_33
into
master
6 years ago
Overview
1
Commits
0
Pipelines
0
Changes
2
Expand
Created by: seamuslee001
ping @monishdeb @eileenmcnaughton
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
040a7bee
0 commits,
4 years ago
2 files
+
35
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
docs/hooks/hook_civicrm_postIPNProcess.md
0 → 100644
+
34
−
0
Options
# hook_civicrm_postIPNProcess
## Summary
This hook allows you to do custom processing of IPN Data following CiviCRM processing.
## Notes
This hook as present only calls when CiviCRM has successfully processed the IPN.
With this hook you can take any of the data including custom data stored via hook_civicrm_alterPaymentProcessorParms into the IPN.
## Definition
hook_civicrm_postIPNProcess(&$IPNData);
## Parameters
-
$IPNData - Array of IPN data recieved from a payment processor.
## Returns
## Example
```
php
function
civitest_civicrm_postIPNProcess
(
&
$IPNData
)
{
if
(
!
empty
(
$IPNData
[
'custom'
]))
{
$customParams
=
json_decode
(
$IPNData
[
'custom'
],
TRUE
);
if
(
!
empty
(
$customParams
[
'gaid'
]))
{
// trigger GA event id for e-commerce tracking.
}
}
}
```
Loading