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 Pay(string goodID, float price, string goodsName, string currency, string userID) { PayInfo payInfo = new PayInfo(goodID, goodsName, "", FrameWork.SDKManager.GoodsType.NORMAL, "", price, currency, userID); NetworkVerificationImplement.SetBuyResendMessage(new StoreBuyGoods2Server(), true); if (Application.platform == RuntimePlatform.Android) { string sdkName = SDKManager.GetProperties(SDKInterfaceDefine.PropertiesKey_StoreName, null); SDKManager.Pay(sdkName, payInfo); } else { SDKManager.Pay(payInfo); } }
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; }