diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index bbaa04114c5278ef09784337db0addb333b2f318..763e2df050cb9dcc280ca8bd2e3d45ff1bce3a5b 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,