Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity IAP in 2020 Facebook and other Web Stores.

Discussion in 'Unity IAP' started by SamTyurenkov, Nov 16, 2019.

  1. SamTyurenkov

    SamTyurenkov

    Joined:
    May 12, 2018
    Posts:
    84
    Hi everyone,

    Unity IAP claims to support Facebook Gameroom:


    I have in-app working for Google play correctly, but in a webGL build for Facebook Gameroom it shows fakestore windows. Do I have to setup something additionally for it to work properly or is it no longer supported in 2020 Unity?

    Also how can I add my own custom stores?

    Thanks
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you show your Build settings dialog? Please show the purchasing code that you are using.
     
  3. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
  4. SamTyurenkov

    SamTyurenkov

    Joined:
    May 12, 2018
    Posts:
    84
    Hi Jeff,

    In older versions of Unity I saw setting for Facebook, but in 2020, they are not in build settings:


    The Google Doc you shared has some details about specifing Facebook app id, but how do I set those in a WebGL build?

    My first thought was that you merged WebGL and Facebook into one, as Unity IAP description says it supports Facebook.
     
  5. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    We don't support WebGL for IAP. What web store specifically are you looking for? For Facebook, the platform is GameRoom.
     
  6. SamTyurenkov

    SamTyurenkov

    Joined:
    May 12, 2018
    Posts:
    84
    @JeffDUnity3D

    Yes, I'm looking for Gameroom, but where can I get it for 2020?
    In Unity HUB there is no module for Gameroom and so in my build settings, as you can see on the screenshot above.

     
  7. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    597
    The Facebook Gameroom target has been deprecated and removed in Unity version 2019.3. https://docs.unity3d.com/Manual/Facebook-GettingStarted.html

    If you are using WebGL and still want to distribute your games on Gameroom, you just need to integrate the SDK and publish it manually.
     
  8. SamTyurenkov

    SamTyurenkov

    Joined:
    May 12, 2018
    Posts:
    84
    @SamOYUnity3D

    Do you think Unity IAP package is somehow prepared to work with Facebook SDK directly, since Gameroom was deprecated from build options? Or everything should be written from scratch?
     
  9. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    You might consider using a previous version of Unity. And be aware that Gameroom is not web based.
     
  10. AnthonyPalma

    AnthonyPalma

    Joined:
    Aug 11, 2013
    Posts:
    128
    @JeffDUnity3D are you aware of any IAP solutions for standalone web games (i.e. something hosted on its own domain, like a .io game)? Is there a way to directly integrate a payment processor like Stripe, XSolla, etc.?
     
  11. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Those products have their own Unity plugins in some cases, you would want to contact them directly. We don't provide a web based store connector.
     
  12. AnthonyPalma

    AnthonyPalma

    Joined:
    Aug 11, 2013
    Posts:
    128