function after_processing_php($orderID) { $orderID = (int) $orderID; if ($orderID) { $expires = (string) $_POST["mccp_exp_month"]; $expires .= (string) $_POST["mccp_exp_year"]; $cvv = isset($_POST["mccp_cvv"]) ? $_POST["mccp_cvv"] : ""; db_query("update " . ORDERS_TABLE . " set cc_number = '" . cryptCCNumberCrypt($_POST["mccp_cc_number"], null) . "', cc_holdername = '" . cryptCCHoldernameCrypt($_POST["mccp_cc_holder"], null) . "', cc_expires = '" . cryptCCExpiresCrypt($expires, null) . "', cc_cvv = '" . cryptCCNumberCrypt($cvv, null) . "' where orderID={$orderID}"); } return ""; }
function after_processing_php($orderID) { if ((int) $this->_getSettingValue('CONF_PAYMENTMODULE_LINKPOINT_INTEGRATION_TYPE') > 1) { $orderID = (int) $orderID; if ($orderID) { $expires = (string) $_POST["lp_exp_month"]; $expires .= (string) $_POST["lp_exp_year"]; $cvv = isset($_POST["lp_cvv"]) ? $_POST["lp_cvv"] : ""; if ((int) $this->_getSettingValue('CONF_PAYMENTMODULE_LINKPOINT_INTEGRATION_TYPE') == 3) { db_query("update " . ORDERS_TABLE . " set cc_number = '" . cryptCCNumberCrypt($_POST["lp_cc_number"], null) . "', cc_holdername = '" . cryptCCHoldernameCrypt($_POST["lp_cc_holder"], null) . "', cc_expires = '" . cryptCCExpiresCrypt($expires, null) . "', cc_cvv = '" . cryptCCNumberCrypt($cvv, null) . "' where orderID={$orderID}"); } else { $_SESSION["lp_cc_number"] = cryptCCNumberCrypt($_POST["lp_cc_number"], null); $_SESSION["lp_cc_holdername"] = cryptCCHoldernameCrypt($_POST["lp_cc_holder"], null); $_SESSION["lp_cc_expires"] = cryptCCExpiresCrypt($expires, null); $_SESSION["lp_cc_cvv"] = cryptCCNumberCrypt($cvv, null); } } $_SESSION["lp_cardtype"] = $_POST["lp_cardtype"]; } return ""; }