*/
protected $backOffice = FALSE;
- /**
- * Contribution that is being paid.
- *
- * @var int
- */
- protected $contributionID;
-
- /**
- * Passed in parameters.
- *
- * Using individual getters & setters is preferred but these will be used if
- * they are not available.
- *
- * @var array
- */
- protected $inputParams = [];
-
- /**
- * Get the contribution ID.
- *
- * We prefer the one set by the setter but traditional forms just pass in 'contributionID'.
- *
- * @return int
- */
- public function getContributionID(): int {
- return $this->contributionID ?? $this->inputParams['contributionID'];
- }
-
- /**
- * @param int $contributionID
- */
- public function setContributionID(int $contributionID) {
- $this->contributionID = $contributionID;
- }
-
/**
* @return bool
*/
* @throws \Civi\Payment\Exception\PaymentProcessorException
*/
public function doPayment(&$params, $component = 'contribute') {
- $this->inputParams = $params;
$this->_component = $component;
$statuses = CRM_Contribute_BAO_Contribution::buildOptions('contribution_status_id', 'validate');
"&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']}";
}