Add new hook preIPNProcess
Overview
Adds a hook preIPNProcess which allows one to edit IPN data before it is processed in CiviCRM.
As a complement to the postIPNProcess hook (which it looks like was originally designed to be "alterIPNData" https://github.com/civicrm/civicrm-core/pull/12928 and work like this one)
Example use-case
- Altering data sent from the processor before CiviCRM processes it, If the data is not processed correctly postIPNProcess is never called, preIPNProcess needs to be used when the data needs to be fixed up in order for it to process successfully
Current behaviour
No way for extension developers to alter IPN data before CiviCRM Processing
Proposed behaviour
Hook that allows extension developers to alter IPN data bore CiviCRM processes it