From a3caf338fbe176601075b1ced6708d78c38c8ceb Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 25 Feb 2015 00:39:43 +0530 Subject: [PATCH] CRM-15993, also handle recurring paypal express ---------------------------------------- * CRM-15993: Add CiviCRM BN code to all PayPal methods for partner program tracking https://issues.civicrm.org/jira/browse/CRM-15993 --- CRM/Core/Payment/PayPalImpl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index 4cb21f78cb..19608b8d8a 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -266,6 +266,9 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { "&b={$params['contributionID']}" . "&p={$params['contributionPageID']}"; + // add CiviCRM BN code + $args['BUTTONSOURCE'] = 'CiviCRM_SP'; + $result = $this->invokeAPI($args); if (is_a($result, 'CRM_Core_Error')) { @@ -273,7 +276,6 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { } /* Success */ - $params['trxn_id'] = $result['transactionid']; $params['gross_amount'] = $result['amt']; $params['fee_amount'] = $result['feeamt']; -- 2.25.1