Skip to content

Commit e5f7477

Browse files
Add support for externally set URLs
1 parent 069e423 commit e5f7477

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CRM/Core/Payment/PaymentExtended.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ protected function getBaseReturnUrl() {
8686
* @return string
8787
*/
8888
protected function getReturnSuccessUrl($qfKey) {
89+
if (isset($this->successUrl)) {
90+
return $this->successUrl;
91+
}
8992
return CRM_Utils_System::url($this->getBaseReturnUrl(), array(
9093
'_qf_ThankYou_display' => 1,
9194
'qfKey' => $qfKey,
@@ -101,6 +104,9 @@ protected function getReturnSuccessUrl($qfKey) {
101104
* @return string
102105
*/
103106
protected function getReturnFailUrl($key, $participantID = NULL, $eventID = NULL) {
107+
if (isset($this->cancelUrl)) {
108+
return $this->cancelUrl;
109+
}
104110
$test = $this->_is_test ? '&action=preview' : '';
105111
if ($this->_component == "event") {
106112
return CRM_Utils_System::url('civicrm/event/register',

0 commit comments

Comments
 (0)