dev/core#1249 Allow IPNs to be validated even if the supplied contact id is wrong...
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 13 Sep 2019 21:21:48 +0000 (07:21 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 16 Oct 2019 02:27:36 +0000 (13:27 +1100)
commit21843539050b1831e0a20302d5da70bf6b933dcb
treee04b0d103487bc4a90858f9cfd066ac85f02c047
parent4cef1bb768290fae7c7fa6ad627c8ba44cadb8f8
dev/core#1249 Allow IPNs to be validated even if the supplied contact id is wrong by checking for contact ids in other objects

Rework the checking code to get contribution first then try using the contact_id from the contribution and log if it is different and error if we can't find the linked contact_id

Rationalise the validation as contact_id in the contribution should always be there and do not worry about checking is_deleted or is_deceased

Ensure we load the contact object
CRM/Core/Payment/BaseIPN.php
tests/phpunit/CRM/Core/Payment/PayPalIPNTest.php