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 }); }
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 }); }
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 }; }