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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
brienne
Developer Documentation
Commits
040a7bee
Commit
040a7bee
authored
6 years ago
by
Seamus Lee
Browse files
Options
Downloads
Patches
Plain Diff
Add in documentation of new hook hook_civicrm_postIPNProcess
parent
6bf533b0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/hooks/hook_civicrm_postIPNProcess.md
+34
-0
34 additions, 0 deletions
docs/hooks/hook_civicrm_postIPNProcess.md
mkdocs.yml
+1
-0
1 addition, 0 deletions
mkdocs.yml
with
35 additions
and
0 deletions
docs/hooks/hook_civicrm_postIPNProcess.md
0 → 100644
+
34
−
0
View file @
040a7bee
# 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.
}
}
}
```
This diff is collapsed.
Click to expand it.
mkdocs.yml
+
1
−
0
View file @
040a7bee
...
...
@@ -177,6 +177,7 @@ pages:
-
hook_civicrm_membershipTypeValues
:
hooks/hook_civicrm_membershipTypeValues.md
-
hook_civicrm_notePrivacy
:
hooks/hook_civicrm_notePrivacy.md
-
<del>hook_civicrm_optionValues</del>
:
hooks/hook_civicrm_optionValues.md
-
hook_civicrm_postIPNProcess
:
hooks/hook_civicrm_postIPNProcess.md
-
hook_civicrm_queryObjects
:
hooks/hook_civicrm_queryObjects.md
-
hook_civicrm_recent
:
hooks/hook_civicrm_recent.md
-
hook_civicrm_tokens
:
hooks/hook_civicrm_tokens.md
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment