The createElement() call in line 112 throws an warning (Warning: DOMDocument::createElement(): unterminated entity reference) and does not set ne child-node correct if you send e.g. for the errorURL an string with & because the value is not escaped by default in this method.
Please add before
$value = str_replace('&', '&', $value);
Similiar is already done in Mpay24Order.php __set() method line 176.