Skip to content
Snippets Groups Projects
Unverified Commit be4f16b0 authored by Jon's avatar Jon Committed by GitHub
Browse files

Merge pull request #551 from seamuslee001/dev_financal_33

Add in documentation of new hook hook_civicrm_postIPNProcess
parents 997383a8 040a7bee
No related branches found
No related tags found
No related merge requests found
# 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.
}
}
}
```
......@@ -180,6 +180,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment