Search Unity

[Solved] Facebook WebGL IAP returns "Store":"fake"

Discussion in 'Unity IAP' started by ctalk, Jul 5, 2017.

Thread Status:
Not open for further replies.
  1. ctalk

    ctalk

    Joined:
    Apr 21, 2017
    Posts:
    12
    Hi, On calling the buy product in a game deployed on Facebook. I am getting this response

    Receipt: {"Store":"fake","TransactionID":"44faf39e-40fc-4133-9b99-611d8e5da04c","Payload":"{ \"this\" : \"is a fake receipt\" }"}

    More specifically, the store returns "fake" instead of "FacebookStore"
    The product ids are added to the store and tester account is also added

    Is there any change that needs to be done in the IAP script when using on facebook? There doesn't seem to be any issue with the IAP as it works flawlessly on Android and iOS
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
  3. ctalk

    ctalk

    Joined:
    Apr 21, 2017
    Posts:
    12
    Okay, So I figured out the issue. It appears that if you are using the Facebook SDK along with the Unity IAP.
    Unity IAP automatically initializes FB, when init is called explicitly the store what I guess loses the reference at the backend and doesn't initializes

    My Fix: Don't explicitly call FB.init if you are using Unity IAP
     
Thread Status:
Not open for further replies.