com.eze.api.TransactionDetails.getTxnId C# (CSharp) Method

getTxnId() public method

public getTxnId ( ) : string
return string
        public string getTxnId()
        {
            return txnId;
        }

Usage Example

        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);
            }
        }
All Usage Examples Of com.eze.api.TransactionDetails::getTxnId