public function createHtmlForm($formName = 'SimplePayForm', $submitElement = 'button', $submitElementText = 'Start Payment')
    {
        if (count($this->errorMessage) > 0) {
            return false;
        }
        if (!$this->prepareFields("ORDER_HASH")) {
            $this->errorMessage[] = 'HASH FIELD: Missing hash field name';
            return false;
        }

        $logString = "";
        $this->luForm = "\n<form action='" . $this->baseUrl . $this->targetUrl . "' method='POST' id='" . $formName . "' accept-charset='UTF-8'>";
        foreach ($this->formData as $name => $field) {
            if (is_array($field)) {
                foreach ($field as $subField) {
                    $this->luForm .= $this->createHiddenField($name . "[]", $subField);
                    $logString .= $name . '=' . $subField . "\n";
                }
            } elseif (!is_array($field)) {
                if ($name == "BACK_REF" or $name == "TIMEOUT_URL") {
                    $concat = '?';
                    if (strpos($field, '?') !== false) {
                        $concat = '&';
                    }
                    $field .= $concat . 'order_ref=' . $this->fieldData['ORDER_REF'] . '&order_currency=' . $this->fieldData['PRICES_CURRENCY'];
                    $field = $this->protocol . '://' . $field;
                }
                $this->luForm .= $this->createHiddenField($name, $field);
                $logString .= $name . '=' . $field . "\n";
            }
        }
        $this->luForm .= $this->createHiddenField("SDK_VERSION", $this->sdkVersion);
        $this->luForm .= $this->formSubmitElement($formName, $submitElement, $submitElementText);
        $this->luForm .= "\n</form>";
        $this->logFunc("LiveUpdate", $this->formData, $this->formData['ORDER_REF']);
        $this->debugMessage[] = 'HASH CODE: ' . $this->hashCode;
        return $this->luForm;
    }