+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019 |
+ | Copyright CiviCRM LLC (c) 2004-2020 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2019
+ * @copyright CiviCRM LLC (c) 2004-2020
*/
/**
"&m=" .
"&c={$params['contactID']}" .
"&r={$params['contributionRecurID']}" .
- // @todo use $this->getContributionID();
"&b={$params['contributionID']}" .
"&p={$params['contributionPageID']}";
$args['PROFILEREFERENCE'] = "" .
"i=" . $params['invoiceID'] . "&m=" . $component .
"&c=" . $params['contactID'] . "&r=" . $params['contributionRecurID'] .
- // @todo use $this->getContributionID();
"&b=" . $params['contributionID'] . "&p=" . $params['contributionPageID'];
}
$notifyParameters = ['module' => $component];
$notifyParameterMap = [
'contactID' => 'contactID',
- // @todo use $this->getContributionID();
'contributionID' => 'contributionID',
'eventID' => 'eventID',
'participantID' => 'participantID',
$cancelUrlString = "$cancel=1&cancel=1&qfKey={$params['qfKey']}";
if (!empty($params['is_recur'])) {
- // @todo use $this->getContributionID();
$cancelUrlString .= "&isRecur=1&recurId={$params['contributionRecurID']}&contribId={$params['contributionID']}";
}
if ($outcome != 'success' && $outcome != 'successwithwarning') {
throw new PaymentProcessorException("{$result['l_shortmessage0']} {$result['l_longmessage0']}");
- $e = CRM_Core_Error::singleton();
- $e->push($result['l_errorcode0'],
- 0, NULL,
- "{$result['l_shortmessage0']} {$result['l_longmessage0']}"
- );
- return $e;
}
return $result;