Skip to content

Commit

Permalink
Remove some functions now in CRM_Core_Payment
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed May 28, 2018
1 parent d877618 commit fe221bc
Showing 1 changed file with 0 additions and 60 deletions.
60 changes: 0 additions & 60 deletions CRM/Core/Payment/PaymentExtended.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,6 @@ public function __construct($mode, &$paymentProcessor) {
$this->_processorName = !empty($paymentProcessor['payment_processor_type']) ? $paymentProcessor['payment_processor_type'] : $paymentProcessor['name'];
}

/**
* Get base url dependent on component.
*
* @return string|void
*/
protected function getBaseReturnUrl() {
if ($this->_component == 'event') {
$baseURL = 'civicrm/event/register';
}
else {
$baseURL = 'civicrm/contribute/transact';
}
return $baseURL;
}

/**
* Get URL to return the browser to on success.
*
Expand Down Expand Up @@ -139,51 +124,6 @@ protected function getReturnFailUrl($key, $participantID = NULL, $eventID = NULL
}
}

/**
* Get url to return to after cancelled or failed transaction.
*
* @param string $qfKey
* @param int $participantID
*
* @return string cancel url
*/
public function getCancelUrl($qfKey, $participantID) {
if ($this->_component == 'event') {
return CRM_Utils_System::url($this->getBaseReturnUrl(), array(
'reset' => 1,
'cc' => 'fail',
'participantId' => $participantID,
),
TRUE, NULL, FALSE
);
}

return CRM_Utils_System::url($this->getBaseReturnUrl(), array(
'_qf_Main_display' => 1,
'qfKey' => $qfKey,
'cancel' => 1,
),
TRUE, NULL, FALSE
);
}

/**
* Get URl for when the back button is pressed.
*
* @param string $qfKey
*
* @return string
* Url to return to the site (without having paid).
*/
protected function getGoBackUrl($qfKey) {
return CRM_Utils_System::url($this->getBaseReturnUrl(), array(
'_qf_Confirm_display' => 'true',
'qfKey' => $qfKey,
),
TRUE, NULL, FALSE
);
}

/**
* Get the notify (aka ipn, web hook or silent post) url.
*
Expand Down

0 comments on commit fe221bc

Please sign in to comment.