require 'includes/application_top.php'; require_once DIR_FS_INC . 'olc_paypal_wpp_enabled.inc.php'; if (olc_paypal_wpp_enabled()) { unset($_SESSION['paypal_error']); $paypal_ec_text = 'paypal_ec_'; if ($_GET['clearSess']) { unset($_SESSION[$paypal_ec_text . 'temp']); unset($_SESSION[$paypal_ec_text . 'token']); unset($_SESSION[$paypal_ec_text . 'payer_id']); unset($_SESSION[$paypal_ec_text . 'payer_info']); } if ($_SESSION[$paypal_ec_text . 'token']) { require DIR_WS_LANGUAGES . SESSION_LANGUAGE . SLASH . FILENAME_EC_PROCESS; require DIR_WS_CLASSES . 'payment.php'; $payment_modules = new payment('paypal_wpp'); $payment_modules->ec_step2(); } else { if ($_GET['action'] == 'process') { //W. Kaiser - AJAX $error_message = EMPTY_STRING; if (!$_POST['conditions']) { $error_message = ERROR_CONDITIONS_NOT_ACCEPTED; } // W. Kaiser if (!$_POST['fernag']) { if (strlen($error_message) > 0) { $error_message .= "\n\n"; } } // W. Kaiser if (strlen($error_message) > 0) {