Nestpay/Request.php
public function returnUrl(String $success, String $fail = NULL)
    {
        $this->settings['okUrl'] = URL::site($success);
        $this->settings['failUrl'] = URL::site($fail ?? $success);

        return $this;
    }
public function returnUrl(String $success, String $fail = NULL)
    {
        $this->settings['okUrl'] = URL::site($success);
        $this->settings['failUrl'] = URL::site($fail ?? $success);

        return $this;
    }
public function returnUrl ( String $ success , String $ fail = NULL ) { $ this -> settings [ 'okUrl' ] = URL :: site ( $ success ) ; $ this -> settings [ 'failUrl' ] = URL :: site ( $ fail ?? $ success ) ; return $ this ; }
Sets return url.

@param string $success
@param string $fail

@return $this
Sets return url .