require shopGetLanguageFile($getLng, 'general');
 $logo = shopGetLogo($paymentMethodShort);
 $PnagInvoice = new PnagInvoice(shopGetConfigKey(), $tId);
 if ($_POST['sofort_action'] == 'sofort_comment') {
     shopSofortComment($_GET['oID'], $order, $_POST['status'], $_POST['comments'], $_POST['notify'], $_POST['notify_comments']);
 }
 if ($_POST['sofort_action'] == 'sofort_save' && $_POST['sofort_delete_all'] == '1') {
     $_POST['sofort_action'] = 'sofort_buttons';
     $_POST['sofort_button'] = 'cancel';
 }
 if ($_POST['sofort_action'] == 'sofort_buttons') {
     switch ($_POST['sofort_button']) {
         case 'invoice':
         case 'preview':
         case 'credit':
             $PnagInvoice->getInvoice();
             break;
         case 'confirm':
             $errors = $PnagInvoice->confirmInvoice();
             $warnings = $PnagInvoice->getWarnings();
             break;
         case 'cancel':
             $errors = $PnagInvoice->cancelInvoice();
             $warnings = $PnagInvoice->getWarnings();
             break;
         default:
             break;
     }
     $errorCodes = "";
     $successCodes = "";
     if ($errors) {