1. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  2. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  3. Unity 2017.2 beta is now available for download.
    Dismiss Notice
  4. Unity 2017.1 is now released.
    Dismiss Notice
  5. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice

Unity IAP - Facebook Payments Lite - Paging not supported?

Discussion in 'Unity IAP' started by _geo__, Jul 7, 2017.

  1. _geo__

    _geo__

    Joined:
    Feb 26, 2014
    Posts:
    39
    The situation:
    We are using Unity IAP 1.11.4 (but it also happens in earlier versions).
    We have been testing with Unity 5.6.0f3, 5.6.1p1, 5.6.2p1.
    We have a WebGL App which uses Facebooks Payments Lite (published as Facebook App page and GameRoom).
    We have 27 IAP products (this will be important ;-)

    The Facebook "Payments Lite" docs state that: "paging" will occur if you have more than 25 products.
    See here: https://developers.facebook.com/docs/games_payments/payments_lite/

    The Problem:
    Unity IAP reports all products that are paged (on page 2,3,...) as unavailable (UnityEngine.Purchasing.Product > "availableToPurchase" is always false).
    Note: The list of products is sorted by name (ABC descending). By changing the titles of your products on facebook you can "choose" which procuts will be unavailable.
    This happens in a live app with > 200.000 MAU, no debug settings or test-app.

    How we "fixed" it:

    In the Facebook Payments Lite backend we have renamed two of our least purchased products to a title starting with "Z". Now all the other products are available just fine. Not a very satisfactory solution but still, better than nothing.

    The question:
    Do you have the same problem?
    If yes, how did you fix it?

    @Unity staff:
    Is it supposed to work with more than 25 "Payment Lite" products?
    How can we force UnityIAP to get all the products, not just the first 25?

    Thank you
     
  2. APalomo

    APalomo

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    593
    @_geo__

    Thanks for reporting this issue. We are looking into this issue.
     
  3. _geo__

    _geo__

    Joined:
    Feb 26, 2014
    Posts:
    39
    Thank you!
    Let us know if you have some beta or fix to test :)
     
  4. JayR

    JayR

    Unity Technologies

    Joined:
    Aug 2, 2016
    Posts:
    64
    Hi @_geo__

    Pagination is not currently functional in the FacebookStore for Unity IAP but we'll get that into the pipeline.
     
  5. JayR

    JayR

    Unity Technologies

    Joined:
    Aug 2, 2016
    Posts:
    64
    Actually, @_geo__ one quick thing you can check in the graph API explorer: select your app in the dropdown under Graph API Explorer. Then replace the text for the request with <your_App_ID>/products?limit=50 and see if it returns your full list or if it still limits it to 25. You can definitely reduce the page size but I'm not sure if you can just arbitrarily increase it.

    Meanwhile I will be adding more products to a test app...