Beispiel #1
0
        public void CreditServiceReverseByCard()
        {
            Transaction response = service.Charge(16m)
                                   .WithCurrency("USD")
                                   .WithPaymentMethod(card)
                                   .Execute();

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

            Transaction reverseResponse = service.Reverse(16m)
                                          .WithPaymentMethod(card)
                                          .Execute();

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