Beispiel #1
0
        public void AuthoriseAndCancelCharge(string overideSecretKey)
        {
            var charge = RequestFactory.CreateChargeRequest(20M, TestConfig.AuthoriseGatewayId);

            Charges svc = CreateSvc(overideSecretKey);

            var chargeResult = svc.Authorise(charge);

            var captureResult = svc.CancelAuthorisation(chargeResult.resource.data._id);

            Assert.IsTrue(captureResult.IsSuccess);
        }