Civil Defense News:





   Copyright © 2005 Wellingborough England directory | | The Initial Developer of the Original Code is Ruslan R. Fazliev. | | Portions created by Ruslan R. Fazliev are Copyright (C) 2001-2002 | | Ruslan R. Fazliev. All Rights Reserved. | +-----------------------------------------------------------------------------+ \*****************************************************************************/ # # $Id: cc_plugnpaycom.php,v 1.5 2002/11/14 07:58:21 zorg Exp $ # # Merchant Manager CC processing module # $pp_publisher = $module_params["param01"]; $pp_email = $module_params["param02"]; $pp_host = $module_params["param03"]; # # To use authorize.net module please correctly enter -referer parameter # if(!file_exists("./plugnpay_com.pl")) { header("Location: ../customer/error_message.php?error_ccprocessor_notfound"); exit; } # # Execute perl script # exec ("./plugnpay_com.pl -ccnum=".$userinfo["card_number"]." -ccexpdate=".$userinfo["card_expire"]." -ccamount=".$cart["total_cost"]." -bname=\"".addslashes($userinfo["firstname"])." ".addslashes($userinfo["lastname"])."\" -baddr=\"".$userinfo["b_address"]."\" -bcity=\"".$userinfo["b_city"]."\" -bstate=\"".$userinfo["b_state"]."\" -bzip=".$userinfo["b_zipcode"]." -bcountry=".$userinfo["b_country"]." -publisher=$pp_publisher -pemail=$pp_email -host=$pp_host 2>&1", $bill_output); #exec ("./plugnpay_com.pl -ccnum=".$userinfo["card_number"]." -ccexpdate=".$userinfo["card_expire"]." -ccamount=".$cart["total_cost"]." -bname=pnptest -baddr=\"".$userinfo["b_address"]."\" -bcity=\"".$userinfo["b_city"]."\" -bstate=\"".$userinfo["b_state"]."\" -bzip=".$userinfo["b_zipcode"]." -bcountry=".$userinfo["b_country"]." -publisher=$pp_publisher -pemail=$pp_email -host=$pp_host", $bill_output); #echo "./plugnpay_com.pl -ccnum=".$userinfo["card_number"]." -ccexpdate=".$userinfo["card_expire"]." -ccamount=".$cart["total_cost"]." -bname=\"".addslashes($userinfo["firstname"])." ".addslashes($userinfo["lastname"])."\" -baddr=\"".$userinfo["b_address"]."\" -bcity=\"".$userinfo["b_city"]."\" -bstate=\"".$userinfo["b_state"]."\" -bzip=".$userinfo["b_zipcode"]." -bcountry=".$userinfo["b_country"]." -publisher=$pp_publisher -pemail=$pp_email -host=$pp_host"; list($bill_errorcode,$bill_message) = explode(",",$bill_output[0]); if ($bill_errorcode == 2) $bill_error="error_ccprocessor_error"; elseif ($bill_errorcode != 1) $bill_error="error_ccprocessor_unavailable"; $bill_message=$bill_output[0]; ?>