dev/financial#33 Add in Hook alterIPNData to allow Extensions to do custom processing...
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 12 Oct 2018 00:25:47 +0000 (11:25 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 18 Oct 2018 20:40:50 +0000 (07:40 +1100)
commit2d39b9c013a18cefbbf1607638b77dcbf40f514d
tree1fa388dad9a537326be26f63c775bce4c2bf9e34
parentdf466fe7c79b59e699cf2437f5da2e6e548d5f7b
dev/financial#33 Add in Hook alterIPNData to allow Extensions to do custom processing of the IPN Data

Add in unit test of alterIPNData hook and ensure that it is called in all styles of IPN Notifications

Shift hook call to be done in handlePaymentMethod function as per Eileen's comment and remove the hook from deprecated pathways and passbyrefeence in hook

Change name to be postIPNProcess to be more explicit about the purpose of the hook
CRM/Core/Payment.php
CRM/Utils/Hook.php
tests/phpunit/CRM/Core/Payment/PayPalIPNTest.php