Announcement

Collapse
No announcement yet.

Need help with in-game purchases using Unreal 4 blueprints

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need help with in-game purchases using Unreal 4 blueprints

    Hi,
    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)?
    Thanks,
    ‚Äč
    Adam Block
    Founder
    Craft Media Group
    www.craftmediagroup.com
    adam@craftmediagroup.com
    (619) 850-8366

    #2
    I can't seem to find any documentation on in game Purchases I would also like to know if this is possible and if the functionality is accessible through blueprints?

    Comment


      #3
      I guess you might want to start with database connections. At the end of the day most people will need to buy extensions offline (unless you work with something like Steam or app stores).

      Comment


        #4
        Hey Guys,

        We do have blueprint In-App functionality added, but it's only implemented so far for IOS and Android. For those platforms, we'd use something like this:
        Click image for larger version

Name:	MakePurchaseNode.png
Views:	1
Size:	120.3 KB
ID:	1064303

        We havent got any plans yet for other platforms, but this is something Ill add to our todo list.

        /Terence

        Comment


          #5
          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!

          Comment


            #6
            Terence,

            The blueprint api for this has changed a bit in 4.6. Can you show how to utilize the 'In App Purchase Callback Proxy Reference' return value from the following Blueprint functions?

            https://docs.unrealengine.com/latest...ase/index.html
            https://docs.unrealengine.com/latest...ion/index.html

            Comment


              #7
              hi jdannenbring :-)

              That documentation is wrong. The above image is the way to go.
              I've added a further screen below to show you how you can use the return information from the IAP :-)
              Click image for larger version

Name:	MakePurchaseNodeResultExpanded.png
Views:	2
Size:	108.9 KB
ID:	1070523

              /Terence

              Comment


                #8
                Hi. Sorry for NecroPosting. Can I have further information? "Handle in App Purchase" is no longer available, i think it's deprecated.
                Any example of a working in app purchase?

                Comment


                  #9
                  Those are simply functions that control what happens if the purchase is successful or not

                  Comment


                    #10
                    mmm is there any documentation or tutorial somewhere?

                    Comment


                      #11
                      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

                      Comment


                        #12
                        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

                        Click image for larger version

Name:	Untitled.png
Views:	1
Size:	159.5 KB
ID:	1079466
                        Last edited by BPANDREW; 06-07-2015, 05:54 AM.
                        ZOMBIE TOWN AHHH (ANDROID/STEAM) | RIDE SHARE EMPIRE (ANDROID/GAME JAM) | NEVER NOT KNIGHT (ANDROID/GAME JAM) | TWITTER | MY UE4 TUTORIALS | ANSWERHUB

                        Comment


                          #13
                          hey, every thing i test fail, when i use "Make an In-App purchase" node, a google play window pop up with an error "Authentication required" what i am doing wrong? any idea why?

                          Comment


                            #14
                            Originally posted by skeleton60 View Post
                            hey, every thing i test fail, when i use "Make an In-App purchase" node, a google play window pop up with an error "Authentication required" what i am doing wrong? any idea why?
                            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)
                            Do Not Argue Toxic Game
                            Balloony PoP get it on Google Play
                            Fishy Blub Blub
                            get it on Google Play

                            Comment


                              #15
                              Originally posted by BPANDREW View Post
                              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

                              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)
                              Do Not Argue Toxic Game
                              Balloony PoP get it on Google Play
                              Fishy Blub Blub
                              get it on Google Play

                              Comment

                              Working...
                              X