OFFICIAL GMS2 IAPs Updates 2.2.4 Feedback

Discussion in 'GameMaker Studio 2 Community Tech Support' started by rmanthorp, Sep 11, 2019.

  1. rmanthorp

    rmanthorp YoYo Games Staff Admin YYG Staff

    Joined:
    Apr 15, 2016
    Posts:
    291
    Updated IAP Support For Google Play, Amazon, and all Apple platforms
    • Updated the Google IAPs extension and created new Amazon IAPs and Apple IAPs extensions - you now need to use these for all IAP functionality (these won't work with older runtimes)
    • Added support for subscriptions on all of these platforms
    • Added support for communication with external payment verification servers (note that Amazon requires you to use your own web server for verifying all IAPs)
    • Added support for local verification of receipts on some stores (not Amazon and not for any subscriptions - all stores require a custom web server for subscriptions)
    • Note that whilst verification (local or remote) is technically optional we would recommend you always use this!
    • Removed all functionality from the old iap_...() functions built-in to the runner - these now only debug message to the console that you shouldn't use that function

    Please note that the release notes and the guides linked-to below all mention several new or updated extensions are required for use with 2.2.4 - these are downloadable HERE until the Marketplace has been updated.

    The Marketplace will not be updated with these new extension versions until 2.2.4 is out fully!

    Helpdesk Setup Guides can be found here:
    Changes to the In-Built IAP Functionality for GMS2 2.2.4 Release (an overview guide)
    Amazon: Setting Up IAPs
    Android: Google Play Billing
    macOS: Using The IAP Extension

    iOS and tvOS: Using The IAP Extension
     
    Last edited by a moderator: Sep 13, 2019
    rIKmAN likes this.
  2. Dan

    Dan YoYo Games Staff YYG Staff

    Joined:
    Apr 15, 2016
    Posts:
    311
    Please be aware that this is a VERY extensive change to IAP functionality and requires some admittedly quite convoluted and complex code. Accordingly, if you file a ticket about this ALWAYS add a sample yyz archive (not just the .yyp file, please!) so we can see what you're doing.

    Note that we can't offer any support for setting up or diagnosing issues in your custom payment server. We would recommend setting up your IAP code using local verification (when possible) and prove your "gameplay integration" seems to be working, then move to using a custom payment server. In this way, you will already know the routes through your game code are fairly solid, and now it's just about treating the HTTP events back from your server correctly.

    We would not recommend releasing your projects with local verification still in place if you can avoid doing this - and of course we would not recommend releasing with no verification at all...
     
  3. SIG.

    SIG. Member

    Joined:
    Aug 12, 2019
    Posts:
    15
    The new iOS IAP article notes that IAPs must be validated using either one's own server or a locally stored Apple Root Certificate.

    How is it that iOS IAPs are currently functioning without this validation?
     
  4. Ricardo

    Ricardo Member

    Joined:
    Jun 20, 2016
    Posts:
    178
    Edit: whoops, wrong thread.
     
  5. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,455
    If IAP now requires the use of custom payment servers, shouldn't there be some guidelines or basic example for building that alongside GML-side instructions? Given how often I call people out on completely inappropriate HTTP programming practices around here, this is a disaster waiting to happen. Is YoYo willing to let PHP amateurs on the GMC lead others astray again (alert: most of them can't even keep the most basic SQL injections out), this time with real money and payment details in the mix? Can't the web dev team help out?
     
    Last edited: Sep 11, 2019
  6. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,866
    Each of the marketplaces that the IAP extensions target provide their own tutorials that cover the creation and use of a server for verification. These cover things in far more detail than we could given that they are written by Google/Amazon/Apple themselves, and they have been linked to in the different documentation associated with the extensions. It would be pointless, time consuming and error-prone for us to duplicate this documentation, and it would also be impossible for us to give a "one size fits all" solution for each platform and game. Note that the use of a server on Apple and Google Play is not required, it's just a recommendation and local verification is still possible. It's only Amazon that 100% require this, but they also provide extensive documentation on how this can be done (which is linked to in the manual for the extension and in the accompanying article).
     
  7. Dan

    Dan YoYo Games Staff YYG Staff

    Joined:
    Apr 15, 2016
    Posts:
    311
    The current implementation on iOS (and the other stores) predates the more sophisticated IAP verification systems included nowadays - that's why we have done this significant update. Previously, on all stores you were required to either do simple in-game checks or rely on an external payment server for everything.
     
  8. Dan

    Dan YoYo Games Staff YYG Staff

    Joined:
    Apr 15, 2016
    Posts:
    311
    A download link for all the IAP extensions has now been added to the first post in this thread ("HERE").
     
  9. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    @Dan are there going to be any updates to the Facebook Instant Games extension, specifically regarding IAP / monetisation support?
     
  10. Mert

    Mert Member

    Joined:
    Jul 20, 2016
    Posts:
    374
    I've finished the Facebook Instant Games extension and currently writing the documentation.
    IAPs & Ads are included (Works both on Web and Mobile : IAP system doesn't work on iOS due to Apple's policy)
    The extension includes everything that IG platform offers.
     
    rIKmAN likes this.
  11. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    Oh sweet, that's awesome Mert!
    What do you have to do on iOS, go through Apple for the payment or is it just not possible?

    I'll probably see the post when you make one, but feel free to @ me in it when you do if you remember! :)
     
    Mert likes this.
  12. Mert

    Mert Member

    Joined:
    Jul 20, 2016
    Posts:
    374
    Hi. Unfortunately, some of the functionalities of Facebook IG platform are restricted, due to Apple's policy. IAPs, cross-promotions(you switch to another game and can pass values to that game) and some of the other things are restricted only on iOS.

    I'll post the extension soon.
     
  13. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    Hmm that's a shame, will have to look into a little more and see what the usual practice for FBIG stuff is with regards to the Apple policy.
    Seems a massive userbase / platform to not be able to monetize it at all.

    Thanks for making it, take your time! :)
     
  14. Dan

    Dan YoYo Games Staff YYG Staff

    Joined:
    Apr 15, 2016
    Posts:
    311
    Right now, we are only updating these platforms. We'll announce if/when more platforms are getting IAP support.

    Awesome work on the extension!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice