Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            OptionalParams p = new OptionalParams();
            String mobileNumber = this.textBox4.Text;
            if (mobileNumber != null)
            {
                Customer cust = new Customer();
                cust.setMobileNumber(mobileNumber);
                p.setCustomer(cust);
            }
            EzeResult res = EzeAPI.create().cardTransaction(20.0,PaymentMode.SALE,p);
            Console.WriteLine("666666.... "+res.getStatus());
            if (res.getStatus() == Status.SUCCESS)
            {
                // f3 = new Form3(parent, "23");

                if (res.getResult() != null)
                {
                    com.eze.api.TransactionDetails td = res.getResult().getTransactionDetails();
                    Form3 f3 = new Form3(parent,td.getTxnId(),p.getCustomer(),parent);
                    f3.Show();
                }
            }
            else
            {
                MessageBox.Show(res.getError().getMessage(), "", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly, false);
            }
        }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     String mobileNumber = this.textBox5.Text;
     String emailId = this.textBox6.Text;
     Customer customer = new Customer();
     customer.setEmailId(emailId);
     customer.setMobileNumber(mobileNumber);
     String referenceId = this.textBox4.Text;
     //
     String chequeBankName = this.textBox2.Text;
     String chequeBankCode = this.textBox3.Text;
     String chequeDate = this.textBox4.Text;
     Cheque che = new Cheque();
     che.setBankName(chequeBankName);
     che.setBankCode(chequeBankCode);
     che.setChequeDate(chequeDate);
     che.setChequeNumber("100");
     Reference refe = new Reference();
     refe.setReference1(referenceId);
     OptionalParams op = new OptionalParams();
     op.setCustomer(customer);
     op.setReference(refe);
     double amount = double.Parse(this.textBox1.Text);
     EzeResult result = EzeAPI.create().chequeTransaction(amount,che,op);
     if (result.getStatus() == Status.SUCCESS)
     {
         if (result.getResult() != null)
         {
             com.eze.api.TransactionDetails td = result.getResult().getTransactionDetails();
             Form3 f3 = new Form3(parent, td.getTxnId(), op.getCustomer(), parent);
             f3.Show();
         }
     }
     else
     {
         MessageBox.Show(result.getError().getMessage(), "", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly, false);
     }
 }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            double amount = double.Parse(this.textBox1.Text);
            String refernceId = this.textBox2.Text;
            String mobileNumber = this.textBox3.Text;
            Customer cust = new Customer();
            cust.setMobileNumber(mobileNumber);
            OptionalParams op = new OptionalParams();
            op.setCustomer(cust);

               // ref.se
              //  op.setReference(ref);
            EzeResult result = EzeAPI.create().cashTransaction(amount,op);
            if (result.getStatus() == Status.SUCCESS)
            {
                Form3 f = new Form3(this,result.getResult().getTransactionDetails().getTxnId(),cust,parent);
                f.Show();

            }
            else
            {
                MessageBox.Show(result.getError().getMessage(), "", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly, false);
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Form3 goster = new Form3();

            goster.ShowDialog();
        }
Exemplo n.º 5
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form3 form3 = new Form3();

            form3.ShowDialog();
        }