From fc7063a4c528996c23d7e06aca9ea5e3f8accf6b Mon Sep 17 00:00:00 2001 From: CiviCRM Date: Mon, 27 Oct 2014 16:17:34 +0530 Subject: [PATCH] CRM-15445: fix missing title --- CRM/Contribute/Form/Contribution/Main.php | 1 + CRM/Core/Payment/PayPalImpl.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index a4af570e96..365009a078 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -1322,6 +1322,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu $params['cancelURL'] = CRM_Utils_System::url('civicrm/contribute/transact', "_qf_Main_display=1&qfKey={$params['qfKey']}", TRUE, NULL, FALSE); $params['returnURL'] = CRM_Utils_System::url('civicrm/contribute/transact', "_qf_Confirm_display=1&rfp=1&qfKey={$params['qfKey']}", TRUE, NULL, FALSE); $params['invoiceID'] = $invoiceID; + $params['description'] = ts('Online Contribution') . ': ' . (($this->_pcpInfo['title']) ? $this->_pcpInfo['title'] : $this->_values['title']); //default action is Sale $params['payment_action'] = 'Sale'; diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index 1f6563af5e..8481a4ec81 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -110,6 +110,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { $args['paymentAction'] = $params['payment_action']; $args['amt'] = $params['amount']; $args['currencyCode'] = $params['currencyID']; + $args['desc'] = $params['description']; $args['invnum'] = $params['invoiceID']; $args['returnURL'] = $params['returnURL']; $args['cancelURL'] = $params['cancelURL']; @@ -201,6 +202,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { $args['invnum'] = $params['invoiceID']; $args['returnURL'] = $params['returnURL']; $args['cancelURL'] = $params['cancelURL']; + $args['desc'] = $params['description']; $result = $this->invokeAPI($args); -- 2.25.1