Beispiel #1
0
        public void ProcessPaymentTest()
        {
            var request = new DirectConnectionRequest(TransactionType.MOTO);

            request = SetupRequest(request);

            var response = client.ProcessPayment <DirectConnectionResponse>(request);

            //Assert.IsNull(response.Errors);
            //Assert.IsTrue((bool)response.TransactionStatus);
        }
Beispiel #2
0
        private DirectConnectionRequest SetupRequest(DirectConnectionRequest request)
        {
            request.CustomerIP      = "127.0.0.1";
            request.DeviceID        = "123";
            request.PartnerID       = "456";
            request.Customer        = TestUtils.CreateTestCustomer();
            request.Payment         = TestUtils.CreateTestPayment();
            request.ShippingAddress = TestUtils.CreateTestShippingAddress();
            request.Items.Add(TestUtils.CreateTestItem());

            return(request);
        }