X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPayment%2FPayPalImpl.php;h=0aa2061ea6c2630839c32d33b2a9b13e5695cc0d;hb=0fccb17f3cf8138fc43aed4b48fd23a38394bbf8;hp=e513bace19376ec2ec0350cca74a26455d4de2a2;hpb=a504c595ea9f4fbabde7ff1fa942b3175a9b7971;p=civicrm-core.git diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index e513bace19..0aa2061ea6 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -553,6 +553,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { $result = $this->invokeAPI($args); return array( 'fee_amount' => $result['feeamt'], + 'net_amount' => $params['gross_amount'] - $result['feeamt'], ); } @@ -575,7 +576,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { $error[] = ts('Password is not set in the Administer » System Settings » Payment Processors.'); } } - if (!$this->_paymentProcessor['user_name']) { + if (empty($this->_paymentProcessor['user_name'])) { $error[] = ts('User Name is not set in the Administer » System Settings » Payment Processors.'); }