void StartTransaction_Clicked(object sender, EventArgs e)
 {
     if (txnToken.Equals(""))
     {
         return;
     }
     AllInOnePlugin.startTransaction(orderId, mid, txnToken, amount, "", isStaging, restrictAppInvoke, this);
 }
        void StartTransaction_Clicked(object sender, EventArgs e)
        {
            OrderId = GetUniqueID();

            var payTMTuple = PayTmPayment.GenerateTransactionToken(amount, "9096160813", OrderId, ReadonlyVariables.PAYTM_WEBSITENAME, ReadonlyVariables.REQUEST_TYPE);

            txnToken = payTMTuple.Item2;

            if (txnToken.Equals(""))
            {
                return;
            }
            AllInOnePlugin.startTransaction(OrderId, mid, txnToken, amount, "", isStaging, true, this);
        }
Esempio n. 3
0
        void Button_Clicked(System.Object sender, System.EventArgs e)
        {
            string amount     = "1.0";
            Random _random    = new Random();
            string OrderId    = _random.Next().ToString();
            var    payTMTuple = PayTmPayment.GenerateTransactionToken(amount, "1111111111", OrderId, "WEBSTAGING", "Payment");

            if (payTMTuple.Item1 == PaytmErrors.SUCCESS)
            {
                if (!payTMTuple.Item2.Equals(""))
                {
                    //go ahead with the transaction

                    var TransactionId = payTMTuple.Item2;                     //storing the transcationId.

                    AllInOnePlugin.startTransaction(OrderId, "qFKjOk51773158003561", payTMTuple.Item2, amount, "https://securegw-stage.paytm.in/theia/paytmCallback?ORDER_ID=" + OrderId, true, true, this);
                }
            }
        }