From dece041a2436a580c40a1a08cfd6e9b246b12d9b Mon Sep 17 00:00:00 2001 From: Matthew Wire <mjw@mjwconsult.co.uk> Date: Thu, 21 Apr 2022 18:36:54 +0100 Subject: [PATCH] Use processor_id instead of trxn_id for recur --- api/v3/Stripe/Listevents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Stripe/Listevents.php b/api/v3/Stripe/Listevents.php index 72206e7c..0ef8212c 100644 --- a/api/v3/Stripe/Listevents.php +++ b/api/v3/Stripe/Listevents.php @@ -422,7 +422,7 @@ function civicrm_api3_stripe_Listevents($params) { if ($subscription) { // Check if recurring contribution can be found. - $results = civicrm_api3('ContributionRecur', 'get', ['trxn_id' => $subscription]); + $results = civicrm_api3('ContributionRecur', 'get', ['processor_id' => $subscription]); if ($results['count'] > 0) { $item['contribution_recur_id'] = $results['id']; $contribution_recur = array_pop($results['values']); -- GitLab