Esempio n. 1
0
        public void AuthoriseAndCaptureCharge(string overideSecretKey, decimal?amount)
        {
            var charge = RequestFactory.CreateChargeRequest(20M, TestConfig.AuthoriseGatewayId);

            Charges svc = CreateSvc(overideSecretKey);

            var chargeResult = svc.Authorise(charge);

            var captureResult = svc.Capture(chargeResult.resource.data._id, amount);

            Assert.IsTrue(captureResult.IsSuccess);
        }