Пример #1
0
        static PayConfiguration createConfigManually()
        {
            // create/read configuration manually (without a file)
            PayConfiguration config = new PayConfiguration();

            // set all mandatory fields
            config.setDevice("H5000");
            config.setDeviceConnector("LAN");
            config.setDeviceProtocol("ZVT");
            config.setTerminalID("12345678");
            config.setMerchantPIN("000000");      // Verifone: 000000, Ingenico: 00000, CCV: 000000
            config.setServicePIN("111111");       // Verifone: 111111, Ingenico: 11599, CCV: 003563
            config.setLicenseFile("../../etc/LUIS_ePaymentLicense.dat");

            // mandatory, if networkConnection=ISDN or =ISDNviaSerial
            //config.setNetworkConnection("ISDN");
            //config.setPhoneConnection(datex1, phone1, datex2, phone2, prefix);

            // mandatory, if networkConnection=LAN
            config.setNetworkConnection("LAN");
            config.setLANConnection("213.095.152.80", "5000", "217.111.131.50", "5000"); //cardTech-1: 213.095.152.80:5000, cardTech-2: 217.111.131.50:5000
            config.setLanIPLocal("192.168.1.99");
            config.setLanPortLocal(22000);                                               // Verifone: 22000, Ingenico: 5577
            config.setLanGateway("192.168.1.1");

            // set log4j config file (optional, default = "./LUIS_ePayment.xml")
            config.setLogfile("../../etc/LUIS_ePayment.xml");

            return(config);
        }
Пример #2
0
        static PayConfiguration createConfigManually()
        {
            // create/read configuration manually (without a file)
            PayConfiguration config = new PayConfiguration();

            // set all mandatory fields
            config.setSharedTerminalIP("192.168.1.100");

            // set log4j config file (optional, default = "./LUIS_ePayment.xml")
            config.setLogfile("../../etc/LUIS_ePayment.xml");

            return(config);
        }