unset($_SESSION['credit_covers']);
 }
 require DIR_WS_CLASSES . 'order_total.php';
 $order_total_modules = new order_total();
 $order_total_modules->clear_posts();
 //ICW ADDED FOR CREDIT CLASS SYSTEM
 // GV Code End
 if (isset($_SESSION['reshash']['ACK']) && (strtoupper($_SESSION['reshash']['ACK']) == "SUCCESS" or strtoupper($_SESSION['reshash']['ACK']) == "SUCCESSWITHWARNING")) {
     $redirect = isset($_SESSION['reshash']['REDIRECTREQUIRED']) && strtoupper($_SESSION['reshash']['REDIRECTREQUIRED']) == "TRUE" ? true : false;
     $o_paypal->paypal_get_customer_data();
     if ($data['PayerID'] or $_SESSION['reshash']['PAYERID']) {
         if ($redirect) {
             unset($_SESSION['paypal_fehler']);
             require DIR_WS_CLASSES . 'payment.php';
             $payment_modules = new payment('paypalexpress');
             $payment_modules->giropay_process();
         }
         $weiter = true;
     }
     unset($_SESSION['nvpReqArray']);
     unset($_SESSION['reshash']);
     if ($weiter) {
         unset($_SESSION['paypal_fehler']);
         xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));
     }
 } else {
     unset($_SESSION['payment']);
     unset($_SESSION['nvpReqArray']);
     unset($_SESSION['reshash']);
 }
 $smarty->assign('error', $_SESSION['paypal_fehler']);