User Tag List

Results 1 to 3 of 3

Thread: OUYA in-app purchase tutorial

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    OUYA in-app purchase tutorial

    This is how you create an in-app purchase

    Set your product at ouya devs
    https://devs.ouya.tv/developers/products



    2) set new product

    Set product ID ( unique name )
    Give your product a name ( The name of your game )
    Set price

    Type of product:
    Entitlement ....... means you can only buy it once
    Consumable ........ means it can be used as many times as you want ( example buy items or extra levels )

    Once you are done setting up your product




    Make sure you have the OUYA object added


    create a new condition
    Start of Frame. Then right click under the ouya object and select Initialize API ( ignore system double tap, that's just to exit the system properly)


    Enter your developer ID


    When you click okay, it will ask you for the key.der


    --------------------------------------------------------------------------------------------------
    Here is where you get your Developer ID ( Dev ID )


    This how you download your key.der, make sure you right click as save as... key.der


    --------------------------------------------------------------------------------------------------

    Now, click on new condition. Right Click on the OUYA object and pick " On API Initialized "


    ( this step is not necessary but it's a good idea to display if the API has started )
    You can type anything you'd like here. (Remember you need to add a text string for this step)


    Now, Right click under the OUYA object and select Set Product
    and type the product name


    Now that the product is selected, it's time to buy it.
    If the user presses Y the product will be bought.




    Insert a condition so the product can only be bought if counter = 0


    Again, make sure you have a counter added. The expression should look like this


    If the user already has the product the counter will be set to 1 ( so they can't buy it again or you remove the purchase option )
    New condition. Select API. Does player have product?


    and if the player has the product, you set the counter to 1 as shown in this pic


    Okay you are done. That is all you need to make an in-app purchase in Fusion.
    Okay. Let's test it on the OUYA.
    Export your .APK and load it to your OUYA. Via USB STICK, FTP...Dropbox or whatever means.

    if the API starts correctly you will see the string you entered. In this case it is: WHOOT WHOO API STARTED -


    Press Y to buy the product, when you press Y it should look like this.


    Buy your product( Don't worry OUYA doesn't charge you for buying your own products, you can delete the purchase at anytime)


    Now the counter is set to 1, so you cannot buy the product again. or you can use the number to remove the purchase option.
    (consumables can be bought as many times as you want and you won't need a counter)


    Check that the transaction - and Boooom - you are done!


    Enjoy.

    Here is the finished product.
    ( remember to change the product ID and import your key )
    http://in-app-ouya-tutorial-fusion.w...chase-ouya.mfa

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,851
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    WAO, excellent tutorial Sparckman!

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,150
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    This is really cool Could you create other tutorials to? Like for android in app purchase?

Similar Threads

  1. OUYA in-app purchase tutorial
    By Sparckman in forum Android Export Module Version 2.0
    Replies: 6
    Last Post: 8th October 2014, 02:32 PM
  2. Android in-app purchase starter - tutorial
    By Sparckman in forum Android Export Module Version 2.0
    Replies: 28
    Last Post: 29th November 2013, 08:50 PM
  3. OUYA - Controller and image import - Tutorial
    By Sparckman in forum Android Export Module Version 2.0
    Replies: 6
    Last Post: 9th November 2013, 12:01 AM
  4. In app purchase tutorial or example file?
    By Outcast in forum Android Export Module Version 2.0
    Replies: 11
    Last Post: 6th November 2013, 04:52 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •