Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Justin · Nov 23, 2018 at 10:00 PM · unity3dIn-Game EconomyPlayer Inventory

As of November 2018 what is the recommended IAP Asset?

Since OpenIAB has disappeared what is PlayFabs recommended IAP Asset?

I have looked at a few in the Unity Store. Some require an internet connection and don't allow offline cloud save functionality at all yet; Simple IAP - has PlayFab integration. Here is a quote from their site.

https://www.rebound-games.com/forum/index.php?topic=596.0

"To not postpone big updates several months, we've decided to implement PlayFab in 3 phases in Simple IAP System:

  • 1. phase: cloud save requires an online connection at all times. No data is saved on the device.
  • 2. phase: save data on the device too. Handle data conflicts caused by different server or local data version in a popup presented to the user.
  • 3. phase: hybrid - make it possible to go from online > offline or offline > online during the game. Compare local/server data and handle data conflicts automatically based on developer defined merging rules.

The first phase is what landed in the initial 4.0 version of Simple IAP System. As it requires an online connection throughout the whole play session, it is the most secure solution by far, altough better suited at devices supporting a reliable internet connection (desktop pc's via ethernet or mobile devices using wi-fi). Please keep that in mind when making use of this first iteration. Basically you have two options with online-only games when there is no internet connection available:

  • logging into PlayFab is not possible - it would be best to disallow entering the game at this state
  • or, only permit offline mode without earning & spending (such as a training mode with local scores)"

Most of the IAP Tutorials and Examples point to now defunct OpenIAB. Is there example code of a simple UnityIAP (Unity Purchasing) integration? I have already searched this forum and have found very little current information about IAP integration with PlayFab. I have already read https://api.playfab.com/blog/show-me-money-receipt-validation-ios-and-android . Trying to use Unity's Codeless IAP became a dead end when I could find no way to pass the item list into the IAP Button objects from a pool. So, I have gone back to the native code version of UnityIAP. I am currently trying to figure out how to exactly layout a system for using PlayFab catalog items and Google items to show the user a list of valid items and to handle the many steps for a store transaction. Its pretty messy so far. Does anyone else have these issues? Is there a straight forward tutorial on this besides the above link? Thanks You.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Nov 26, 2018 at 09:17 AM

Thanks for your feedback, your description about online-only games IAP is basically correct. For example in Google Play purchase, the majority of the process are communications between client and google play server. PlayFab can validate the purchase only after the purchase data and in-app signature from Google Play are received.

Currently we do not have detailed Unity IAP integration tutorials but you can take a look at these two: https://answers.unity.com/questions/1191677/getting-unity-iap-receipt-data-to-validate-with-pl.html and https://unity3d.com/cn/learn/tutorials/topics/ads-analytics/integrating-unity-iap-your-game.

I will report your suggestions to our documentation team to see if there is upcoming tutorials about it. Please keep track of our documentation and blog updates.

Comment

People who like this

0 Show 6 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Justin · Nov 26, 2018 at 07:47 PM 0
Share

Does the team have a recommended IAP package that works well with Playfab?

Which (GooglePlay) "Purchaser" method and where in the process should ValidateGoogleReciept happen?

(also.. how the heck do you make an edit to a question or reply here?) Nvm.. Edit is working now.

avatar image Andy ♦♦ Justin · Nov 26, 2018 at 10:07 PM 1
Share

We haven't validated any external Unity IAP assets and, as such, can't make a recommendation.

As to when to call ValidateGooglePlayReceipt, you should do so as soon as you have a receipt and you'd like the items granted to the player in the PlayFab backend. It's hard to be more specific than that without knowing the details of your game's purchase flow.

avatar image Justin Andy ♦♦ · Nov 29, 2018 at 12:11 AM 0
Share

Well directly using Google Play In-app Billing service (Version 3 API), as directed in the

"show-me-money-receipt-validation-ios-and-android" link above, is incredibly convoluted and a huge time waste. Many mentions of this service lead to all sorts of unresolved problems by customers trying to use the outdated Google service.

Unity recommends using "Codeless IAP", however if used, it seems like they have not allowed any coded connections to the purchasing data you need. So, I am trying to use the "Coded IAP" which means turning off all of the "Codeless IAP" that over rides it. I guess a simple you need "this" from "here" through "this" service option flow would help a ton. Still googling like a MF other peoples mess to try and figure out how to do it since PlayFab has no recommendations on a Google Play IAB middle-man asset. Why was OpenIAB chosen for the examples? Since it is now unusable and its flow will be different than any other service even the documentation will be useless. Frustrated.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    problem with PurchaseItemRequest 1 Answer

    How to integrate real money payment using Playfab? 1 Answer

    Consumable Game Items 1 Answer

    Any Guide or Tutorial for Unity / iOS google Sign in? 1 Answer

    How do I access the money I've made? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges