None of the ids loaded in this function are used anymore so we can remove the call to it
The only reference to ids after this line is to contribution page id, which is loaded earlier
* @return bool|void
*
* @throws \CiviCRM_API3_Exception
+ * @throws \API_Exception
*/
public function main() {
try {
throw new CRM_Core_Exception("Could not find contribution recur record: {$ids['ContributionRecur']} in IPN request: " . print_r($input, TRUE));
}
- $ids['paymentProcessor'] = $paymentProcessorID;
- $contribution->loadRelatedObjects($input, $ids);
-
// check if first contribution is completed, else complete first contribution
$first = TRUE;
if ($contribution->contribution_status_id == 1) {