From 14965416513a7f6edf36fe9c97fd8903a4f76858 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Sun, 14 Apr 2013 18:37:28 -0700 Subject: [PATCH] CRM-12353 ---------------------------------------- * CRM-12353: installments array value not set http://issues.civicrm.org/jira/browse/CRM-12353 --- CRM/Core/Payment/PayPalImpl.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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, ); -- 2.25.1