User Tag List

Page 1 of 9 1 2 3 ... LastLast
Results 1 to 10 of 85

Thread: In-App Purchases - a guide

  1. #1
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, ┼rhus
    Posts
    3,455
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb In-App Purchases - a guide

    Hi everybody!
    This is a small guide to create and use In-App-Purchases using the iOS Store extension.

    First, you must go to iTunes Connect and sign in with your Apple ID.
    Note that you must have the right contracts signed to use IAP's.

    Select "Manage Your Applications" and select your app that you have previously set up that you wish to add IAP's for.

    Important: The "Bundle ID" of the app you are setting up IAP's for should match the Bundle ID that you are using in your MFA file.

    Then click 'Manage In-App Purchases' in the menu at the right.

    Under "In-App Purchase Summary" you will find a button to create a new IAP:


    You must decide which type of item you are in the process of creating.
    For this guide I'm sticking to simple non-consumables - which basically means that once you buy the item you will have it forever.


    You should then chose a reference name for your item. This item name is only for your own reference.
    It will not be shown in your app.


    You must then chose a product identifier.
    It is a good idea to use the inverse URL way of making an unique identifier so it doesn't clash with any other name you might be using.
    For example: "com.companyname.gamename.itemname"


    Under "Pricing and Availability" you must select which price tier the product should be in:



    Under "In-App Purchase Details" you must name your item and describe it in the languages you decide.


    Save it:

    Here i added the item name and description in English and Danish:


    You must decide if the content of the item is downloadable or simply just "unlockable" from your game.
    If the item requires that you download some content from a server you can choose to host it on Apple's servers.



    It is optional if you wish to fill out the review notes but you must supply a screenshot to Apple for
    review purposes so they can see what the IAP is all about.

    Save the information:


    I have added three IAP items for my test app:


    Press done - and you are done! (with the iTunes Connect part)

    Time to set up IAP's in your MFA!
    InAppPurchase.mfa

    I have written a bunch of comments inside.
    Please note that this is just one way of doing in app-purchases.
    You can also fetch the list of items from a server using the GET Object and then fetch the item information.
    You can also use the 'specific' conditions in the iOS Store object to hardcode the identifiers if you don't need to have that many IAP's in your app.

    In my example file I dynamically created the buttons as the information is retrieved but you can easily
    have them created beforehand with prettier graphics and then show a "progress/loading" indicator while it fetches the product information from the store.

    When you are all set: export and try it in the simulator (to run it in the sandbox):



    Please note that the sandbox can be quite slow at fetching the product identifiers.
    It will take a while before they are shown on the screen in my example.

    Also please read the help-file of the iOS Store object to read more about how In-App Purchases work.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Mar 2010
    Location
    Lier, Norway
    Posts
    272
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Awesome, Andos! Thank you so much for this

  3. #3
    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)
    Excellent Andos, very good the Guide. Thank you your effort!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Diablohead's Avatar
    Join Date
    Jun 2006
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much for this guide, it's something I still want to try out.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-on
    iamjot's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great! Thx!

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProUnicode Add-on
    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)
    Hristos's Avatar
    Join Date
    Jul 2006
    Location
    Makrygialos, Greece
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much Andos!

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jan 2012
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm having a little trouble when I test it on the device. It comes up with the price, and the product details so I know its connecting and getting the data correctly.
    When the user clicks to buy it pops up asking if they want to buy (sandboxed). But then nothing happens. I don't get a payment failed notification and it doesn't purchase the item no matter how long I wait.

    Is this a sandbox problem or is it a problem with user certificates or something along those lines.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    hcem's Avatar
    Join Date
    Nov 2012
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    In-App Purchases - a guide

    hi, do we need mmf developer for this??

  9. #9
    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)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by assentec View Post
    I'm having a little trouble when I test it on the device. It comes up with the price, and the product details so I know its connecting and getting the data correctly.
    When the user clicks to buy it pops up asking if they want to buy (sandboxed). But then nothing happens. I don't get a payment failed notification and it doesn't purchase the item no matter how long I wait.

    Is this a sandbox problem or is it a problem with user certificates or something along those lines.
    First, go to your device settings and sign out of iTunes. It's probably trying to use your currently logged in iTunes account as a Sandbox account and failing.

    When you create a Sandbox user, make sure you don't under any circumstances sign in unless it's through your app requesting it via an IAP. There's some weird thing with Sandbox accounts that makes them invalid if you do anything else with it. Read more about it here - http://stackoverflow.com/questions/1...inapp-purchase

    Quote Originally Posted by hcem View Post
    hi, do we need mmf developer for this??
    Yes, the iOS Store object is Developer only if I'm not mistaken.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by assentec View Post
    Is this a sandbox problem or is it a problem with user certificates or something along those lines.
    Is the device running on iOS 4.3? Had this problem with IAP on the 4.3 simulator, not on 5.0 or higher.

    @hcem: yes, I think so

Page 1 of 9 1 2 3 ... LastLast

Similar Threads

  1. Secure in-app purchases
    By SoftWarewolf in forum Android Export Module 2.5
    Replies: 13
    Last Post: 19th May 2014, 10:32 AM
  2. In-app purchases?
    By pdsoft in forum Android Export Module Version 2.0
    Replies: 23
    Last Post: 25th October 2013, 11:08 PM
  3. In app purchases?
    By ZayLong in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 20th July 2013, 04:47 PM
  4. In-game purchases, NOT in-app purchases.
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th September 2012, 09:44 PM
  5. In-App Purchases Question
    By CBSection31 in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 25th October 2011, 07:59 PM

Posting Permissions

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