protected override void OnGetOrderSuccess(CreateOrderRes res) { if (CompensateOrder) { LoadingOverlay.Instance.Hide(); OnPaySuccess(res.OrderId); } else { base.OnGetOrderSuccess(res); } }
private void OnGetOrderSuccess(CreateOrderRes res) { LoadingOverlay.Instance.Hide(); _product.OrderId = res.OrderId; Debug.LogError("OnGetOrderSuccesso===>OrderId:" + res.OrderId + " ExtraInfo:" + res.ExtraInfo); Dictionary <string, string> payinfo = new Dictionary <string, string>(); payinfo.Add("productId", _product?.ProductId); payinfo.Add("dataInfo", Payload.GetGooglePlayPayLoad(_product)); GalaSDKBaseFunction.Pay(GalaSDKBaseFunction.GalaSDKType.Google, payinfo); SdkHelper.StatisticsAgent.OnStartPay(res.OrderId, PayAgent.PayChannel, _product); }
protected virtual void OnGetOrderSuccess(CreateOrderRes res) { LoadingOverlay.Instance.Hide(); Debug.LogError("My IOS 创建订单成功回调--->" + "响应码:" + res.Ret + ";充值总金额:" + res.TotalRecharge); if (res.Ret == ErrorCode.SERVER_TOURIST_NOT_RECHARGE || res.Ret == ErrorCode.SERVER_RECHARGE_UPPERLIMIT || res.Ret == ErrorCode.SERVER_NOT_OPPEN_RECHARGE) { ShowWallowPayView(res.Ret, res.TotalRecharge); return; } _product.OrderId = res.OrderId; payChecker.AddOrder(_product, payType); Debug.LogError("OnGetOrderSuccess===>OrderId:" + res.OrderId + " ExtraInfo:" + res.ExtraInfo); Dictionary <string, string> payinfo = new Dictionary <string, string>(); payinfo.Add("orderId", _product.OrderId); payinfo.Add("paySandbox", AppConfig.Instance.paySandbox ? "true" : "false"); // payinfo.Add("price", _product.Price + ""); payinfo.Add("currencyAmount", _product.Price * 100 + ""); payinfo.Add("productName", _product.Name); payinfo.Add("productDesc", _product.Name); payinfo.Add("productId", _product.ProductId); foreach (var data in res.ExtraInfo) { payinfo.Add(data.Key, data.Value); } GalaSDKBaseFunction.Pay(GalaSDKBaseFunction.GalaSDKType.Channel, payinfo); SdkHelper.StatisticsAgent.OnStartPay(res.OrderId, PayChannel, _product); }