예제 #1
0
        public TransactionResponse VoidCreditCardTransaction(string reference)
        {
            var creditCardVoidRequest = new CreditCardVoidRequest(_userName, _password, reference);
            var response = creditCardVoidRequest.Execute();

            return(new TransactionResponse
            {
                Approved = response.ResponseStatus == ResponseStatus.Approved,
                AuthCode = response.AuthCode,
                Message = response.ResponseText,
                TransactionId = response.TransactionId
            });
        }
예제 #2
0
        public TransactionResponse VoidCreditCardTransaction(string reference)
        {
            var voidRequest = new CreditCardVoidRequest(_id, _key, reference);
            var response    = voidRequest.Execute();

            return(new TransactionResponse
            {
                Approved = response.ApprovalIndicator == ApprovalIndicator.Approved,
                AuthCode = response.Code,
                Message = response.Message,
                TransactionId = response.Reference
            });
        }
예제 #3
0
        public TransactionResponse VoidCreditCardTransaction(string reference)
        {
            var creditCardVoidRequest = new CreditCardVoidRequest(_userName, _password, reference);
            var response = creditCardVoidRequest.Execute();

            return new TransactionResponse
            {
                Approved = response.ResponseStatus == ResponseStatus.Approved,
                AuthCode = response.AuthCode,
                Message = response.ResponseText,
                TransactionId = response.TransactionId
            };
        }