Exemplo n.º 1
0
        public void CreditServiceRefundByCard()
        {
            Transaction response = service.Charge(14m)
                                   .WithCurrency("USD")
                                   .WithPaymentMethod(card)
                                   .Execute();

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

            Transaction refundResponse = service.Refund(14m)
                                         .WithCurrency("USD")
                                         .WithPaymentMethod(card)
                                         .Execute();

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