public function getResponseBody($status, $nextUrl, $detail = null)
    {
        $body = [
            'Status=' . $status,
            'RedirectUrl=' . $nextUrl,
        ];

        if ($detail !== null) {
            $body[] = 'StatusDetail=' . $detail;
        }

        return implode(static::LINE_SEP, $body);
    }
public function getResponseBody($status, $nextUrl, $detail = null)
    {
        $body = [
            'Status=' . $status,
            'RedirectUrl=' . $nextUrl,
        ];

        if ($detail !== null) {
            $body[] = 'StatusDetail=' . $detail;
        }

        return implode(static::LINE_SEP, $body);
    }
public function getResponseBody ( $ status , $ nextUrl , $ detail = null ) { $ body = [ 'Status=' . $ status , 'RedirectUrl=' . $ nextUrl , ] ; if ( $ detail !== null ) { $ body [ ] = 'StatusDetail=' . $ detail ; } return implode ( static :: LINE_SEP , $ body ) ; }
Construct the response body.

@param string The status to send to Sage Pay, one of static::RESPONSE_STATUS_*
@param string URL to forward the customer to.
@param string Optional human readable reason for this response.
Construct the response body .