I set the google payload and then verify it on the server side, the resulting payload is always {"developerPayload":"*******************","is_free_trial":false,"has_introductory_price_trial":false,"is_updated":false}, that is not the string I've set.It seems Unity set a content to payload that overwrite my string. I am confused, please help me.
@Hema_domo You are receiving a string of asterisks? Can you show the code that you are using, and the payload that you are setting? Is it an ASCII string? Is this on your server?
@JeffDUnity3D The code of purchase is below Code (CSharp): public static void Buy(string userId, string productId, LuaFunction callback) { if (mIsBuying) { if (callback != null) { callback.Call(failed_not_buying); } return; } mCurrentUserId = userId; mCurrentProductId = productId; mBuyCallback = callback; mIsBuying = true; if (string.IsNullOrEmpty(userId)) { SendBuyCallback(failed_user_not_found); return; } if (IsInitialized()) { Product product = mListener.StoreController.products.WithID(productId); if (product != null && product.availableToPurchase) { Debug.Log("PurchaserUtils Buy userId : " + userId); mListener.StoreController.InitiatePurchase(product, userId); } else { SendBuyCallback(failed_product_not_found); } } else { SendBuyCallback(failed_not_initialized); } } The 'userId' is a GUID string and line 'Debug.Log("PurchaserUtils Buy userId : " + userId);' hava show right userId. On the server side, I get purchase information from google succeed, but the payload is not the userId I've set. Full payload string received from google is {"developerPayload":"di1mNmUxNmJiMS0yNTJlLTRmY2UtOWJhZC1lM2UxM2I1NTJkNjA=\n","is_free_trial":false,"has_introductory_price_trial":false}
Sorry, I'm not quite following. Are you receiving a string of asterisks only? Please show the Debug.Log output and the corresponding string that you are seeing. And you mention "on the server side", can you elaborate? Is this your server? Where exactly are you seeing the string of asterisks?