public XWebInputDTG(XWebTransactionType transactionType, long patNum, string payNote) : base(transactionType, patNum) { _payNote = payNote; if (string.IsNullOrEmpty(_payNote)) { throw new ODException("Invalid PayNote", ODException.ErrorCodes.OtkArgsInvalid); } }
public FormXWeb(long patNum, CreditCard creditCard, XWebTransactionType tranType, bool createPayment) { InitializeComponent(); Lan.F(this); _patNum = patNum; _creditCard = creditCard; _tranType = tranType; _createPayment = createPayment; }
private void butOK_Click(object sender, EventArgs e) { if (radioReturn.Checked) { _tranType = XWebTransactionType.CreditReturnTransaction; } else { _tranType = XWebTransactionType.Undefined; } if (!VerifyData()) { return; } if (ProcessSelectedTransaction()) { DialogResult = DialogResult.OK; } }
protected XWebInputDTGPaymentSale(long patNum, string payNote, double amount, long creditCardNum, XWebTransactionType transactionType) : base(transactionType, patNum, payNote) { _amount = amount; if (_amount <= 0.00 || _amount > 99999.99) { throw new ODException("Invalid Amount", ODException.ErrorCodes.OtkArgsInvalid); } CreditCard cc = CreditCards.GetOne(creditCardNum); if (cc == null) { throw new ODException("CreditCardNum not found: " + creditCardNum.ToString(), ODException.ErrorCodes.OtkArgsInvalid); } if (cc.PatNum != _patNum) { throw new ODException("Credit card token does not belong to this patient. CreditCardNum: " + creditCardNum.ToString() + " - PatNum: " + _patNum.ToString() + ".", ODException.ErrorCodes.OtkArgsInvalid); } if (string.IsNullOrEmpty(cc.XChargeToken)) { throw new ODException("Invalid CC Alias", ODException.ErrorCodes.OtkArgsInvalid); } _cc = cc; }
public XWebInputHpf(XWebTransactionType transactionType, long patNum, bool isMobile) : base(transactionType, patNum) { _isMobile = isMobile; }
public XWebInputAbs(XWebTransactionType transactionType, long patNum) { _transactionType = transactionType; _patNum = patNum; }