X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPayment%2FPaymentExpress.php;h=28552293feeda9e863a2fb44186cb8904f034b8e;hb=a2366db066c413d41194dfcfb82801db6e7371cb;hp=f26ddfd571ba88a0dbc8133fb67af995dab7a07e;hpb=88cdfcb1999b6cba85e1cb5d68eb4df891cdd028;p=civicrm-core.git diff --git a/CRM/Core/Payment/PaymentExpress.php b/CRM/Core/Payment/PaymentExpress.php index f26ddfd571..28552293fe 100644 --- a/CRM/Core/Payment/PaymentExpress.php +++ b/CRM/Core/Payment/PaymentExpress.php @@ -1,7 +1,7 @@ _paymentProcessor['user_name'])) { $error[] = ts('UserID is not set in the Administer » System Settings » Payment Processors'); @@ -159,7 +159,7 @@ class CRM_Core_Payment_PaymentExpress extends CRM_Core_Payment { } - $dpsParams = array( + $dpsParams = [ 'AmountInput' => str_replace(",", "", number_format($params['amount'], 2)), 'CurrencyInput' => $params['currencyID'], 'MerchantReference' => $merchantRef, @@ -171,7 +171,7 @@ class CRM_Core_Payment_PaymentExpress extends CRM_Core_Payment { 'TxnId' => '', 'UrlFail' => $url, 'UrlSuccess' => $url, - ); + ]; // Allow further manipulation of params via custom hooks CRM_Utils_Hook::alterPaymentProcessorParams($this, $params, $dpsParams);