Merge pull request #19661 from civicrm/5.35
[civicrm-core.git] / api / v3 / Contribution.php
index a2e112f76e30cde4af08d12749f6a7ba36a339d2..710c6ee7f073c10bd576a88dfe3d69624e458800 100644 (file)
@@ -684,7 +684,7 @@ function _ipn_process_transaction($params, $contribution, $input, $ids) {
     'related_contact' => $ids['related_contact'] ?? NULL,
     'participant' => !empty($objects['participant']) ? $objects['participant']->id : NULL,
     'contributionRecur' => !empty($objects['contributionRecur']) ? $objects['contributionRecur']->id : NULL,
-  ], $objects['contribution'],
+  ], $objects['contribution']->id ?? NULL,
     $params['is_post_payment_create'] ?? NULL);
 }