Hi, i recently upgraded from 4.24 to 4.25. Problem is, all purchasing-related nodes stopped working. So i modified my code to use the v2 of the purchases nodes, and now everything seems to be fine, with one exception: “restore in-app purchasesV2” does not return anything anymore (the returned array is empty). Even more, looks like the game allows me to purchase “non-consumable” items more than once (previously a “you already own this” message poped up).
So looks like UE4 now treats non-consumables as consumables.
What changed? Is there something wrong with my implementation? Or is this a bug? If so, would upgrading to 4.26 fix this?
I did some testing and if you disable StoreV2 in the configuration files v1 nodes will start working again. Restoring purchases using V1 works perfectly fine. Until v2 nodes are fixed i’ll just stick to v1.
Don’t bother, V1 is not longer supported and no longer works properly (even tough you can restore purchases properly, the newly made purchases are not beeing confirmed and google automatically refunds them after about 10 minutes, not to mention that the game will start crashing A LOT if you use the old version). We must wait for some update to patch StoreV2. Until then, 4.24 still works.
If you still want to disable store V2 and use V1, drop this in your config file:
No, “restore in app purchases2” does not seem to work in 4.26.1 too. I think the main reason is that “Break In App Purchase Restore Info2” is empty even after “On Success”. Can I please ask you if you have reported this problem so that I will vote on it as well?
Yes, this is the issue i belive. Previously, in 4.24, attempting to purchase something you already own would result in a “you already own this” message. In 4.25, pressing the “purchase” button again only prompts you to purchase the item again. That’s why i belive that “isconsumable” is ignored.
And I also think that reading in version 2 does not work, because instead of, for example, the name of the item and the description, it returns the phrases “super cool item 1” or “super fan item 1” (apparently created by default in an array with information on the subject ).
So can you fix it? What about the application, where to sign? Google informs that soon version 2 will stop being supported, but it does not work for us either!
LogScript: Warning: Script Msg: UInAppPurchaseQueryCallbackProxy::TriggerQuery - In App Purchases are not supported by Online Subsystem
LogScript: Warning: Script Msg: UInAppPurchaseQueryCallbackProxy::TriggerQuery - In App Purchases are not supported by Online Subsystem
I dont know why not detect that.
If change to V2, always when read the Product ID the data is not correct, for example say:
I belive that only happens if you are in the engine (in the packaged game it should give you the actual items you setup in the app store). It is for testing i belive.