[REF] Clean up interaction with contribution recur object
authoreileen <emcnaughton@wikimedia.org>
Wed, 21 Oct 2020 23:38:54 +0000 (12:38 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 21 Oct 2020 23:38:54 +0000 (12:38 +1300)
commitf32e55f6529b7140c28f0417e596cfb8f74e1096
treec058a6755a0fe04c9627663ef3cd7d49f9f6b89f
parent9a66ac8d272ee7add293ac139c50a1ce094a2948
[REF] Clean up interaction with contribution recur object

It we look in getIDS and through that to getContributionObject we can see that an exception
is thrown if there is no valid recurring contribution object (A.net only does IPNs for recurring).

This removes a bunch of condition ifs around it's presence and also uses the object more consistently
CRM/Core/Payment/AuthorizeNetIPN.php