getErrorCode() === '0') { $this->result = (string)$xml->Body->Result; $this->redirectURL = (string)$xml->Body->Url; } } public function getRedirectURL() { return $this->redirectURL; } public function wasSuccessful() { return $this->getErrorCode() === '0' && $this->result == 'Success'; } }