Example #1
0
        public void test_case_14b()
        {
            _device = new PaxDevice(new ConnectionConfig {
                ConnectionMode = ConnectionModes.HTTP,
                IpAddress      = "10.12.220.172",
                Port           = "10009",
                DeviceId       = 5569387,
                SiteId         = 102311,
                LicenseId      = 102308,
                UserName       = "******",
                Password       = "******",
                Url            = "https://cert.api2.heartlandportico.com/Hps.Exchange.PosGateway/PosGatewayService.asmx"
            });

            var response = _device.CreditSale(1, 15.12m)
                           .WithAllowDuplicates(true)
                           .Execute();

            Assert.IsNotNull(response);
            Assert.AreEqual("00", response.ResponseCode);

            var editResponse = _device.CreditEdit(18.12m)
                               .WithGratuity(2m)
                               .WithTransactionId(response.TransactionId)
                               .Execute();

            Assert.IsNotNull(editResponse);
            Assert.AreEqual("00", editResponse.ResponseCode);
        }
Example #2
0
 public void EditNoConfiguration()
 {
     _device.CreditEdit(10m).Execute();
 }