public static void SetBuyResendMessage(StoreBuyGoods2Server msg, bool noSend) { ResendMessageManager.AddResendMessage(msg, typeof(StoreBuyGoods2Client).Name, (resMsg) => { StoreBuyGoods2Client e = (StoreBuyGoods2Client)resMsg; Debug.LogWarning("NetworkVerificationImplement StoreBuyGoods2Client=========" + e.id); PaymentVerificationManager.OnVerificationResult(e.code, e.id, e.repeatReceipt, e.receipt); }, noSend); }
private void OnReceiveMsgCallBack(MessageClassInterface resMsg) { StoreBuyGoods2Client e = (StoreBuyGoods2Client)resMsg; StoreName storeName = GetGoodsPayInfo(e.receipt).storeName; Debug.LogWarning("NetworkVerificationImplement StoreBuyGoods2Client=========" + e.id + " storeName:" + storeName); PaymentVerificationManager.OnVerificationResult(e.code, e.id, e.repeatReceipt, e.receipt, null, storeName); }
private static void EventAdd() { NetworkVerificationImplement implement = new NetworkVerificationImplement(); PaymentVerificationManager.Init(implement); PaymentVerificationManager.onVerificationResultCallBack += OnVerificationResultCallBack; LoginGameController.OnUserLogin += OnUserLogin; GlobalEvent.AddTypeEvent <CheckPayLimitResultEvent>(OnCheckPayLimitResult); }
public static void Init(List <PayProductDefinition> productDefinitions) { //初始化支付凭据验证管理器 NetworkVerificationImplement implement = new NetworkVerificationImplement(); PaymentVerificationManager.Init(implement); PaymentVerificationManager.onVerificationResultCallBack += OnVerificationResultCallBack; LoginGameController.OnUserLogin += OnUserLogin; StorePayController.productDefinitions = productDefinitions; Debug.Log("支付商店初始化"); }
public static void Init(List <LocalizedGoodsInfo> productDefinitions) { Debug.Log("商店初始化:" + JsonUtils.ToJson(productDefinitions)); //初始化支付凭据验证管理器 NetworkVerificationImplement implement = new NetworkVerificationImplement(); PaymentVerificationManager.Init(implement); PaymentVerificationManager.onVerificationResultCallBack += OnVerificationResultCallBack; LoginGameController.OnUserLogin += OnUserLogin; StorePayController.productDefinitions = productDefinitions; Debug.Log("支付商店初始化"); }
public static void SetBuyResendMessage(StoreBuyGoods2Server msg, bool noSend) { SaveGoodsPayInfo(msg.receipt, msg); ResendMessageManager.AddResendMessage(msg, typeof(StoreBuyGoods2Client).Name, (resMsg) => { StoreBuyGoods2Client e = (StoreBuyGoods2Client)resMsg; StoreName storeName = GetGoodsPayInfo(e.receipt).storeName; Debug.LogWarning("NetworkVerificationImplement StoreBuyGoods2Client=========" + e.id + " storeName:" + storeName); PaymentVerificationManager.OnVerificationResult(e.code, e.id, e.repeatReceipt, e.receipt, null, storeName); }, noSend); }
public void CheckRecipe(OnPayInfo info) { StoreBuyGoods2Server msg = new StoreBuyGoods2Server(); msg.storeName = info.storeName; msg.receipt = info.receipt; msg.id = info.goodsId; ResendMessageManager.AddResendMessage(msg, typeof(StoreBuyGoods2Client).Name, (resMsg) => { StoreBuyGoods2Client e = (StoreBuyGoods2Client)resMsg; PaymentVerificationManager.OnVerificationResult(e.code == 0, e.id, e.repeatReceipt, e.receipt); }); // JsonMessageProcessingController.SendMessage(msg); Debug.Log(" 当前游戏服务器验证"); }
public static void Init(List <LocalizedGoodsInfo> productDefinitions) { //初始化支付凭据验证管理器 NetworkVerificationImplement implement = new NetworkVerificationImplement(); PaymentVerificationManager.Init(implement); PaymentVerificationManager.onVerificationResultCallBack += OnVerificationResultCallBack; LoginGameController.OnUserLogin += OnUserLogin; StorePayController.productDefinitions = productDefinitions; Debug.Log("支付商店初始化"); LoginGameController.OnUserLogin += UserLogin; ApplicationManager.s_OnApplicationFocus += OnGameFocus; }