private FdCreditCardResp Force(Ticket ticket, decimal amount, out string requestStatus) { var txType = ((ComboBoxItem)_view.FdTransactionType.SelectedItem).Tag.ToString(); FdCreditCardReq fdReq = new FdCreditCardReq(txType); fdReq.amount = amount.ToString(); fdReq.cardholder_name = _view.CardName.Text; fdReq.cc_expiry = _view.CardExpire.Text; fdReq.cc_number = _view.CardNumber.Password; fdReq.gateway_id = Settings.GatewayId; fdReq.password = Settings.Password; fdReq.transaction_type = txType; fdReq.reference_no = ticket.Id.ToString(); FdCreditCardResp fdResp; var fdGwMgr = new FdGatewayManager(Settings.GatewayUri, FdGatewayManager.ApiVersion.V11); if (fdGwMgr.SendFdCreditCardRequest(fdReq, out fdResp, out requestStatus)) { return(fdResp); } else { return(null); } }
private FdCreditCardResp Force(Ticket ticket, decimal amount, out string requestStatus) { var txType = ((ComboBoxItem)_view.FdTransactionType.SelectedItem).Tag.ToString(); FdCreditCardReq fdReq = new FdCreditCardReq(txType); fdReq.amount = amount.ToString(); fdReq.cardholder_name = _view.CardName.Text; fdReq.cc_expiry = _view.CardExpire.Text; fdReq.cc_number = _view.CardNumber.Password; fdReq.gateway_id = Settings.GatewayId; fdReq.password = Settings.Password; fdReq.transaction_type = txType; fdReq.reference_no = ticket.Id.ToString(); FdCreditCardResp fdResp; var fdGwMgr = new FdGatewayManager(Settings.GatewayUri, FdGatewayManager.ApiVersion.V11); if (fdGwMgr.SendFdCreditCardRequest(fdReq, out fdResp, out requestStatus)) { return fdResp; } else { return null; } }