/// <summary> /// 获得预支付订单 /// </summary> /// <param name="e"></param> /// <param name="args"></param> private void OnPrePay(PrePay2Client e, object[] args) { if (e.storeName != StoreName.HuaWei) { return; } Debug.LogWarning("OnPrePay=========:" + e.prepay_id + "=partnerId=="); PayInfo payInfo = new PayInfo( e.goodsID, GetGoodsInfo(goodsID).localizedTitle, "", FrameWork.SDKManager.GoodsType.NORMAL, e.mch_orderID, price, GetGoodsInfo(goodsID).isoCurrencyCode, GetUserID(), e.storeName.ToString()); payInfo.prepay_id = e.prepay_id; SDKManagerNew.Pay(payInfo); }
/// <summary> /// 获得预支付订单 /// </summary> /// <param name="e"></param> /// <param name="args"></param> private void OnPrePay(PrePay2Client e, object[] args) { Debug.LogWarning("OnPrePay=========:" + e.prepay_id + "=partnerId=="); //判断是否需要重发支付 if (SDKManager.GetReSendPay(e.storeName.ToString())) { OnPayInfo onPayInfo = new OnPayInfo(); onPayInfo.isSuccess = true; onPayInfo.goodsId = e.goodsID; onPayInfo.storeName = e.storeName; onPayInfo.receipt = e.mch_orderID; onPayInfo.price = payInfo.price; PayReSend.Instance.AddPrePayID(onPayInfo); } payInfo.orderID = e.mch_orderID; payInfo.prepay_id = e.prepay_id; SDKManagerNew.Pay(payInfo); StartLongTimeNoResponse(); }
/// <summary> /// 获得预支付订单 /// </summary> /// <param name="e"></param> /// <param name="args"></param> private void OnPrePay(PrePay2Client e, object[] args) { if (e.storeName != StoreName.IAppPay) { return; } Debug.LogWarning("OnPrePay=========:" + e.prepay_id + "=prepay_id=="); //DateTime dt1970 = new DateTime(1970, 1, 1, 0, 0, 0, 0); OnPayInfo onPayInfo = new OnPayInfo(); onPayInfo.isSuccess = true; onPayInfo.goodsId = e.goodsID; onPayInfo.storeName = StoreName.IAppPay; onPayInfo.receipt = e.mch_orderID; PayReSend.Instance.AddPrePayID(onPayInfo); //IndentListener(e.goodsID,e.mch_orderID, e.prepay_id, nonceStr, timeStamp, sign); PayInfo payInfo = new PayInfo(e.goodsID, GetGoodsInfo(e.goodsID).localizedTitle, "", FrameWork.SDKManager.GoodsType.NORMAL, e.mch_orderID, 0, GetGoodsInfo(goodsID).isoCurrencyCode, GetUserID(), StoreName.IAppPay.ToString()); payInfo.prepay_id = e.prepay_id; SDKManagerNew.Pay(payInfo); }
/// <summary> /// 获得预支付订单 /// </summary> /// <param name="e"></param> /// <param name="args"></param> private void OnPrePay(PrePay2Client e, object[] args) { if (e.storeName != StoreName.UC) { return; } Debug.LogWarning("OnPrePay=========:" + e.prepay_id + "=partnerId=="); //华为的支付重发意义不大 //OnPayInfo onPayInfo = new OnPayInfo(); //onPayInfo.isSuccess = true; //onPayInfo.goodsId = e.goodsID; //onPayInfo.storeName = StoreName.HuaWei; //onPayInfo.receipt = e.mch_orderID; //onPayInfo.price = price; //PayReSend.Instance.AddPrePayID(onPayInfo); StartLongTimeNoResponse(); //IndentListener(e.goodsID, e.mch_orderID, e.prepay_id, price); PayInfo payInfo = new PayInfo( e.goodsID, GetGoodsInfo(goodsID).localizedTitle, "", FrameWork.SDKManager.GoodsType.NORMAL, e.mch_orderID, price, GetGoodsInfo(goodsID).isoCurrencyCode, GetUserID(), e.storeName.ToString()); payInfo.prepay_id = e.prepay_id; SDKManagerNew.Pay(payInfo); }
public override void Login(string tage) { SDKManagerNew.Login("WeiXin.WeiXinSDK", ""); }
//public override void Init() //{ // base.Init(); // //SDKManagerNew.OnLoginCallBack += ReceiveWXResult; //} public override void Login(string tage) { Debug.LogWarning(tage); SDKManagerNew.Login("WeiXin", ""); }