private function whenError($message)
    {
        return $this->result->setData([
            'success' => false,
            'payload' => [
                'error'    => $message,
                'redirect' => sprintf('%s%s', $this->baseUrl(), 'pagseguro/payment/failure')
            ]
        ]);
    }
private function whenError($message)
    {
        return $this->result->setData([
            'success' => false,
            'payload' => [
                'error'    => $message,
                'redirect' => sprintf('%s%s', $this->baseUrl(), 'pagseguro/payment/failure')
            ]
        ]);
    }
private function whenError ( $ message ) { return $ this -> result -> setData ( [ 'success' => false , 'payload' => [ 'error' => $ message , 'redirect' => sprintf ( '%s%s' , $ this -> baseUrl ( ) , 'pagseguro/payment/failure' ) ] ] ) ; }
Return when fails

@param $message
@return $this
Return when fails