/*****************************************************************************\ +-----------------------------------------------------------------------------+ | X-Cart | | Copyright (c) 2001-2002 Ruslan R. Fazliev. All rights reserved. | +-----------------------------------------------------------------------------+ | The Ruslan R. Fazliev forbids, under any circumstances, the unauthorized | | reproduction of software or use of illegally obtained software. Making | | illegal copies of software is prohibited. Individuals who violate copyright | | law and software licensing agreements may be subject to criminal or civil | | action by the owner of the copyright. | | | | 1. It is illegal to copy a software, and install that single program for | | simultaneous use on multiple machines. | | | | 2. Unauthorized copies of software may not be used in any way. This applies | | even though you yourself may not have made the illegal copy. | | | | 3. Purchase of the appropriate number of copies of a software is necessary | | for maintaining legal status. | | | | DISCLAIMER | | | | THIS SOFTWARE IS PROVIDED BY Ruslan R. Fazliev ``AS IS'' AND ANY | | EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | | DISCLAIMED. IN NO EVENT SHALL Ruslan R. Fazliev OR ITS | | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | | OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | | OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | | | | 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_ipaymentinc.php,v 1.5 2002/12/10 08:57:10 sdg Exp $ # # this line protect us from empty orders $bill_error=true; # # Finish transaction # $response = $HTTP_POST_VARS ["response"]; if ($REQUEST_METHOD == "POST" and $response) { session_id($cartId); session_register("cart"); session_register("order_secureid"); session_register("userinfo"); session_register("secure_oid"); #echo "RESPONSE IS $response";exit; $res = substr($response,0,1); if($res == 1 or $res == 2) { include "../include/payment_method.php"; func_change_order_status($secure_oid, "P"); $_orderids = func_get_urlencoded_orderids ($secure_oid); session_unregister("secure_oid"); # # Remove all from cart # $cart=""; header("Location: ../customer/cart.php?mode=order_message&orderids=$_orderids"); exit; } else { func_change_order_status($secure_oid, "F");session_unregister("secure_oid"); header("Location: ../customer/error_message.php?error_ccprocessor_error"); exit; } } $ipaymentinc_login = $module_params["param01"]; $ipaymentinc_back_url = "$http_location/payment/cc_ipaymentinc.php"; #$module_params["param02"]; $ipaymentinc_password = $module_params["param02"]; #echo $ipaymentinc_back_url;exit; session_register("order_secureid"); ?>
| Please wait while connecting to IpaymentInc payment gateway... |