From: kurund Date: Tue, 24 Feb 2015 19:09:43 +0000 (+0530) Subject: CRM-15993, also handle recurring paypal express X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a3caf338fbe176601075b1ced6708d78c38c8ceb;p=civicrm-core.git 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 --- 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'];