Exemplo n.º 1
0
 public static function SetVersion()
 {
     $dirName = dirname(__FILE__);
     $baseString = md5_file($dirName . "/GatewayService.php") . md5_file($dirName . "/GatewayRequest.php") . md5_file($dirName . "/GatewayResponse.php") . md5_file($dirName . "/GatewayParameterList.php") . md5_file($dirName . "/GatewayCodes.php");
     GatewayChecksum::$checksum = md5($baseString);
     if (GatewayChecksum::$checksum != GatewayChecksum::$baseChecksum) {
         GatewayChecksum::$versionNo = "P3.7m";
     }
 }
Exemplo n.º 2
0
 * whatsoever arising out of or in connection with the use or performance of this software,
 * including, without limitation, damages resulting from loss of use, data or profits, and
 * whether or not advised of the possibility of damage, regardless of the theory of liability.
 *
 */
require_once dirname(__FILE__) . "/GatewayCodes.php";
require_once dirname(__FILE__) . "/GatewayRequest.php";
require_once dirname(__FILE__) . "/GatewayResponse.php";
require_once dirname(__FILE__) . "/GatewayChecksum.php";
////////////////////////////////////////////////////////////////////////////////
//
//	Compute the version number.
//
////////////////////////////////////////////////////////////////////////////////
//
GatewayChecksum::SetVersion();
////////////////////////////////////////////////////////////////////////////////
//
//	GatewayService() - Object that performs sends transactions
//			   to a RocketGate Gateway Server.
//
////////////////////////////////////////////////////////////////////////////////
//
class GatewayService
{
    public $rocketGateHost;
    // Gateway hostname
    public $rocketGateProtocol;
    // Message protocol
    public $rocketGatePortNo;
    // Network connection port