From 7a7c8e2b30dfd00605aedd1fb7ce91ca491385db Mon Sep 17 00:00:00 2001 From: Eileen McNaughton <emcnaughton@wikimedia.org> Date: Fri, 10 Mar 2023 11:22:50 +1300 Subject: [PATCH] dev/core#4158 Fix for recurring double ups --- CRM/Core/Payment/PayPalImpl.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index bbaa04114c5..763e2df050c 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -544,7 +544,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { public function doPaymentPayPalButton(&$params) { $args = []; - $result = $this->setStatusPaymentPending([]); + $result = []; $this->initialize($args, 'DoDirectPayment'); @@ -606,7 +606,6 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { } /* Success */ - $result = $this->setStatusPaymentCompleted($result); $doQueryParams = [ 'gross_amount' => $apiResult['amt'] ?? NULL, 'trxn_id' => $apiResult['transactionid'] ?? NULL, -- GitLab