public function setSuccessUrl($url) { if (substr($url, 0, 4) !== 'http') { $url = 'http://' . $url; } $this->successUrl = $url; return $this; }