public void paymentNotify(string args) { ParseReceiveParams(args); string result = GetReceiveParam(KeyResult); string error = GetReceiveParam(KeyError); Debug.Log("[U3dAppReceiver]: paymentNotify------------------- the result is " + result); Debug.Log("[U3dAppReceiver]: paymentNotify------------------- the error is " + error); if ("Success" == error) { string productID = GetReceiveParam(KeyProductId); string changeIdentity = GetReceiveParam(KeyOrderId); string changeReceipt = GetReceiveParam(KeyPayDescription); Debug.Log("[U3dAppReceiver]: productID is " + productID); Debug.Log("[U3dAppReceiver]: changeIdentity is " + changeIdentity); Debug.Log("[U3dAppReceiver]: changeReceipt is " + changeReceipt); ShopDataManager.AddPendingOrderId(ShopDataManager.PayCommodityData.orderId, GameDefines.PlatformApp, changeIdentity, changeReceipt); NetSender.Instance.RequestAppStoreChargeConfirm(ShopDataManager.PayCommodityData.orderId, changeReceipt, changeIdentity); } else { GUIRadarScan.Hide(); //GUIVipStore.inRechargeing = false; } }
void paymentNotify(string args) { ParseReceiveParams(args); string result = GetReceiveParam(KeyResult); string error = GetReceiveParam(KeyError); Debug.Log("[U3dAppReceiver]: paymentNotify------------------- the result is " + result); Debug.Log("[U3dAppReceiver]: paymentNotify------------------- the error is " + error); if ("Success" == error) { string productID = GetReceiveParam(KeyProductId); string changeIdentity = GetReceiveParam(KeyIosOrderId); string changeReceipt = GetReceiveParam(KeyPayDescription); string keyOrderId = GetReceiveParam(KeyOrderId); Debug.Log("[U3dAppReceiver]: productID is " + productID); Debug.Log("[U3dAppReceiver]: changeIdentity is " + changeIdentity); Debug.Log("[U3dAppReceiver]: changeReceipt is " + changeReceipt); Debug.Log("[U3dAppReceiver]: keyOrderId is " + keyOrderId); if (keyOrderId != null && keyOrderId != "") { ShopDataManager.AddPendingOrderId(keyOrderId, GameDefines.OutPutChannelsIdentity, changeIdentity, changeReceipt); NetSender.Instance.RequestAppStoreChargeConfirm(keyOrderId, changeReceipt, changeIdentity); } else { ShopDataManager.AddPendingOrderId(ShopDataManager.PayCommodityData.orderId, GameDefines.OutPutChannelsIdentity, changeIdentity, changeReceipt); NetSender.Instance.RequestAppStoreChargeConfirm(ShopDataManager.PayCommodityData.orderId, changeReceipt, changeIdentity); } } else { // UIWindowMgr.hideWaiting(); GUIRadarScan.Hide(); } }