has_errors(); } /** * Determines if the transaction was held. * * @since 2.0.0 * * @return bool */ public function transaction_held() { return false; // TODO: make sure there are no held responses } /** Getter methods ************************************************************************************************/ /** * Gets the transaction ID. * * @since 2.0.0 * * @return string */ public function get_transaction_id() { return ''; } /** * Gets the response status message. * * @since 2.0.0 * * @return string */ public function get_status_message() { $message = ''; foreach ( $this->get_errors() as $error ) { $message = $error->getDetail(); break; } return $message; } /** * Gets the response status code. * * @since 2.0.0 * * @return string */ public function get_status_code() { $code = ''; foreach ( $this->get_errors() as $error ) { $code = $error->getCode(); break; } return $code; } /** * Gets array of response status codes. * * @since 3.5.0 * * @return array */ public function get_status_codes() { $codes = array(); foreach ( $this->get_errors() as $error ) { $codes[] = $error->getCode(); } return $codes; } /** * Gets the message to display to the user. * * @since 2.0.0 * * @return string */ public function get_user_message() { return ''; } /** * Gets the payment type. * * @since 2.0.0 * * @return string */ public function get_payment_type() { return Gateway::PAYMENT_TYPE_CREDIT_CARD; } }