dev/core#4158 Fix for recurring double ups
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 9 Mar 2023 22:22:50 +0000 (11:22 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 9 Mar 2023 22:22:50 +0000 (11:22 +1300)
CRM/Core/Payment/PayPalImpl.php

index bbaa04114c5278ef09784337db0addb333b2f318..763e2df050cb9dcc280ca8bd2e3d45ff1bce3a5b 100644 (file)
@@ -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,