Beispiel #1
0
 public bool AddNewTransactions(CreditCardTransactions credit)
 {
     object[] results = this.Invoke("AddNewTransactions", new object[] {
         credit
     });
     return((bool)(results[0]));
 }
Beispiel #2
0
 /// <remarks/>
 public void AddNewTransactionsAsync(CreditCardTransactions credit, object userState)
 {
     if ((this.AddNewTransactionsOperationCompleted == null))
     {
         this.AddNewTransactionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddNewTransactionsOperationCompleted);
     }
     this.InvokeAsync("AddNewTransactions", new object[] {
         credit
     }, this.AddNewTransactionsOperationCompleted, userState);
 }
Beispiel #3
0
        protected void btnSubmitTransaction_Click(object sender, EventArgs e)
        {
            CreditSvc.CreditCardTransactions credit = null;

            credit = new CreditSvc.CreditCardTransactions();
            credit.PDescription  = txtNewProductName.Text;
            credit.pPrice        = float.Parse(txtNewProductPrice.Text);
            credit.CreditZipCode = int.Parse(txtNewZipCode.Text);
            credit.CreditState   = txtNewState.Text;
            credit.CreditAddress = txtNewState.Text;
            credit.CreditCity    = txtNewCity.Text;

            CreditSvc.CreditCardObjects CreditCard = null;

            CreditCard            = new CreditSvc.CreditCardObjects();
            CreditCard.cardNumber = int.Parse(txtTransactionCardNumber.Text);
            CreditCard.code       = int.Parse(txtTransactionCvv.Text);
            CreditCard.first      = txtTransactionFirstName.Text;
            CreditCard.last       = txtTransactionLastName.Text;
            CreditCard.date       = txtTransactionExDate.Text;

            if (pxy.CompareCardTransaction(CreditCard))
            {
                lblError.Visible = true;

                if (pxy.AddNewTransactions(credit))
                {
                    lblError.Text = "Transaction Approved";
                }
                else
                {
                    lblError.Text = "Transaction Not Approved";
                }
            }
            else
            {
                lblError.Visible = true;
                lblError.Text    = "Credit Card information was incorrect";
            }
        }
Beispiel #4
0
 /// <remarks/>
 public void AddNewTransactionsAsync(CreditCardTransactions credit)
 {
     this.AddNewTransactionsAsync(credit, null);
 }