void StartTransaction_Clicked(object sender, EventArgs e) { if (txnToken.Equals("")) { return; } AllInOnePlugin.startTransaction(orderId, mid, txnToken, amount, "", isStaging, restrictAppInvoke, this); }
public void success(Dictionary <string, object> dictionary) { string value = "{ "; foreach (string key in dictionary.Keys) { value += key + " : " + dictionary[key] + " , "; } value += " }"; setMessage(value); AllInOnePlugin.DestroyInstance(); }
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); }
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); } } }
public bool OpenUrl(UIApplication application, NSUrl url, string sourceApplication, NSObject annotation) { AllInOnePlugin.handleOpenUrl(url); return(true); }
public void error(string errorMessage) { setMessage("error : " + errorMessage); AllInOnePlugin.DestroyInstance(); }
public void error(string errorMessage) { AllInOnePlugin.DestroyInstance(); }
public void success(Dictionary <string, object> dictionary) { AllInOnePlugin.DestroyInstance(); }