Example #1
0
        public void PaymentRefund()
        {
            // TODO uncomment below to test the method and replace null with proper value
            string id = null;

            string paymentToken = null;

            var authorization = authorizationApi.AuthorizationCreateToken();

            paymentToken = "001.d2hsgmp251rovl7i80ise05pe8ga1h0rh8b2ri4vvqla6hbf";

            var response = instance.PaymentGetByToken(paymentToken);

            var refund = new Refund(response.Id, response.OriginalAmount, "Refund for Order", response.Id, "2021-01-16T00:00:00Z", response.Id);

            var refundResponse = instance.PaymentRefund(response.Id, refund);

            response = instance.PaymentGetByToken(paymentToken);

            Assert.IsInstanceOf <Payment>(response, "response is Payment");
        }