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

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

@ctalk

We have discovered an issue with the Facebook.dll, but I’m not sure if that is related.

Would you be able to provide the information requested here, specifically your purchasing script:

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