*/
protected $_component;
+ /**
+ * Parameters to append to the notify url.
+ *
+ * The notify url is passed to the payment processor and the processor uses it for return ping backs or redirection.
+ *
+ * @var array
+ */
+ protected $notifyUrlParameters = array();
+
+ /**
+ * Get notify url parameters.
+ *
+ * @return array
+ */
+ public function getNotifyUrlParameters() {
+ return $this->notifyUrlParameters;
+ }
+
+ /**
+ * Set notify url parameters.
+ *
+ * @param array $notifyUrlParameters
+ */
+ public function setNotifyUrlParameters($notifyUrlParameters) {
+ $this->notifyUrlParameters = $notifyUrlParameters;
+ }
+
/**
* How are we getting billing information.
*
}
/**
- * Get url to return to after cancelled or failed transaction
+ * Get url to return to after cancelled or failed transaction.
*
- * @param $qfKey
- * @param $participantID
+ * @param string $qfKey
+ * @param int $participantID
*
* @return string cancel url
*/
protected function getNotifyUrl() {
$url = CRM_Utils_System::url(
'civicrm/payment/ipn/' . $this->_paymentProcessor['id'],
- array(),
- TRUE
+ $this->getNotifyUrlParameters(),
+ TRUE,
+ NULL,
+ FALSE
);
return (stristr($url, '.')) ? $url : '';
}