Location: PHPKode > projects > IGSGateway > Client.php
<?php
/*
 * 	      Client.php is copyright � 2010. EarthWalk Software.
 * 		  Licensed under the Academic Free License version 3.0.
 *        Refer to the file named License provided with the source.
 */
/*
 * 
 * Client.php - Sample IGSGatewayInterface Application client
 * 
 * The IGSGatewayInterface application demonstrates one way of
 * utilizing the Gateway class (Gateway.php) to access the IGS Merchant 
 * Gateway server.  It is written in php5 (5.2.6) and uses the ZendFramework
 * library (version 1.7.2).
 * @author Jay Wheeler
 * @version 1.0
 * @copyright � 2010. EarthWalk Software.
 * @license refer to License file provided with the source.
 * @package IGSGateway
 * @subpackage Client
 */
/**
 * Sample application to demonstrate useage of the IGSGatewayInterface.
 * @package IGSGateway
 * @subpackage Client
 */

    // **************************************************************************************
    //
    //		Installation configuration.
    //
    // **************************************************************************************

	$production = true;
	$zend = '/usr/share/php/Zend';

    // **************************************************************************************
    //
    //		Make no changes below this block.
    //
    // **************************************************************************************

	require_once('ClientStartup.php');
	
	if ($production)
	{
		$config = ClientStartup::CONFIG_PRODUCTION;
	}
	else
	{
		$config = ClientStartup::CONFIG_DEVELOPMENT;
	}

    // **************************************************************************************
    //
    //		Setup and run the client.
    //
    // **************************************************************************************

	/**
	 * Load ClientStartup class.
	 */

	if (! ClientStartup::Setup('IGSGateway.xml', $config, $zend))
	{
		print "\nUnable to setup client environment.\n\n";
		exit (1);
	}

    // **************************************************************************************

	require_once ('StaticTables.php');
	
    // **************************************************************************************

	ClientTransaction::process($_POST);

	exit(0);
Return current item: IGSGateway