I’m currently in development using Unreal 4 for an Oculus VR project. I’d like to incorporate in-game purchases to “unlock” various areas of a level/map & access to certain things. For example use a blocking volume to prompt the player to pay admission, once admission has successfully been paid & the in-game purchase is confirmed, remove blocking volume & allow player to access the new area of the map.
Since Unreal 4 now uses blueprints, does anyone have any threads they could point me towards or documentation on using blueprints to create in-game purchases (for the Oculus marketplace in particular)?
Thank you Terence! yea if you can do it for other platforms, I would really like to see a generic paypal purchase something along those lines, amazon would be a big one, definitely the UE4 Marketplace etc…I look forward to seeing development on this I will be looking around on trello & if you could share any new dev on this with me hit me up, Thanks again Terence!
Well I’m not sure but basically say you wanted to add 100 coins when then complete the purchase, you would just put the nodes that add the coins to the players coin variable off of the onSuccess pin, you can also have the game give the player some sort of message that the coins were added, maybe a nice animation as well
when you ask for a tutorial or a guide, you get linked here. Can you please take a moment to make at least a simple stubbed out wiki or something? or maybe a sample project?
If I call request in read app purchase request - success is returned IF i have purchased it? Will this code work correctly if I don’t publish through the app store? (production build deployed directly to my device)
From what I’ve read - I’m starting to get that idea that I am supposed to use a save game boolean or something to track in app purchases?
this is what im doing now to verify my in app purchases but it doesn’t seem to be working (when i deploy a production build to my device with the bat file) - payments go through but my read payments always come out false
You need to have a test account and test device. The main Google Developer Console owner/admin isn’t allowed to test iAP’s you need a 2nd device where the main/default user is one of your test accounts (hope i make sece)
The read iap node doesn’t seem functional at the moment so indeed it doesn’t work at all (have tried many things myself). There’s no way to give back iAP’s to users that let’s say switch to a different device and as far as I know it’s mandatory to have a option to give back iAP’s previously bought by a user (none consumables)
Since then, Unreal have released a Match 3 game for you to look through. Give the code-base a look and you can see how they have implemented it. Check out the Livestream, where they also discuss this in more depth.