public void OrderCapturePayment() { // TODO uncomment below to test the method and replace null with proper value string id = null; var authorization = authorizationApi.AuthorizationCreateToken("https://auth-dev.partpay.co.nz"); var createOrderRequest = CreateRequest(CreateOrderRequest.PaymentFlowEnum.Authorization); var createOrderResponse = instance.OrderCreate(authorization, "IK004", createOrderRequest); id = createOrderResponse.OrderId; System.Threading.Thread.Sleep(2000); // Give the system time to complete the creation of the order var order = instance.OrderGet(authorization, id); var capture = new CreateCaptureRequest(id, 50); var response = instance.OrderCapture(authorization, id, "IK005", capture); Assert.IsInstanceOf <CaptureOrder>(response, "response is Refund"); }