/** * Returns whether an error occured. * * @return bool */ public function getErrorOccured() { if ($this->paymentMethodObj) { return $this->paymentMethodObj->getErrorOccured(); } return false; }