Example #1
0
 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);
     }
 }
Example #2
0
 public FormXWeb(long patNum, CreditCard creditCard, XWebTransactionType tranType, bool createPayment)
 {
     InitializeComponent();
     Lan.F(this);
     _patNum        = patNum;
     _creditCard    = creditCard;
     _tranType      = tranType;
     _createPayment = createPayment;
 }
Example #3
0
 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;
     }
 }
Example #4
0
            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;
            }
Example #5
0
 public XWebInputHpf(XWebTransactionType transactionType, long patNum, bool isMobile) : base(transactionType, patNum)
 {
     _isMobile = isMobile;
 }
Example #6
0
 public XWebInputAbs(XWebTransactionType transactionType, long patNum)
 {
     _transactionType = transactionType;
     _patNum          = patNum;
 }