Exemple #1
0
        public void CheckServiceVoid()
        {
            Transaction response = service.Charge(11m)
                                   .WithCurrency("USD")
                                   .WithPaymentMethod(check)
                                   .WithAddress(address)
                                   .Execute();

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

            Transaction voidResponse = service.Void(response.TransactionId).Execute();

            Assert.IsNotNull(voidResponse);
            Assert.AreEqual("00", voidResponse.ResponseCode);
        }