From: Donald A. Lobo Date: Mon, 15 Apr 2013 01:37:28 +0000 (-0700) Subject: CRM-12353 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=14965416513a7f6edf36fe9c97fd8903a4f76858;p=civicrm-core.git CRM-12353 ---------------------------------------- * CRM-12353: installments array value not set http://issues.civicrm.org/jira/browse/CRM-12353 --- diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index 7a7d3f3586..323eea0bc3 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -466,8 +466,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { return FALSE; } - function changeSubscriptionAmount(&$message = '', $params = array( - )) { + function changeSubscriptionAmount(&$message = '', $params = array()) { if ($this->_paymentProcessor['payment_processor_type'] == 'PayPal') { $config = CRM_Core_Config::singleton(); $args = array(); @@ -610,12 +609,12 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { $paypalParams += array( 'cmd' => '_xclick-subscriptions', - 'a3' => $params['amount'], - 'p3' => $params['frequency_interval'], - 't3' => ucfirst(substr($params['frequency_unit'], 0, 1)), + 'a3' => $params['amount'], + 'p3' => $params['frequency_interval'], + 't3' => ucfirst(substr($params['frequency_unit'], 0, 1)), 'src' => 1, 'sra' => 1, - 'srt' => ($params['installments'] > 0) ? $params['installments'] : NULL, + 'srt' => CRM_Utils_Array::value('installments', $params), 'no_note' => 1, 'modify' => 0, );