A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Now in Beta! Get 1:1 live lessons on any Unity topic or help troubleshooting your project – Connect with an expert on Unity Live Help
Discussion in 'Assets and Asset Store' started by Baroni, Aug 8, 2013.
Hi, I'm getting a bunch of these errors after upgrading, what should I use instead?
Hi, due to the new format tracking purchase amounts the .isPurchased method changed to .GetPurchase (product id) > 0.
Thanks for the hint, I'll reimplement this as a convenience method in the next update.
Thanks for the reply. I'll roll back to the previous version then, rather than break all my scripts.
Well you could just add this to the DBManager yourself:
public static bool isPurchased(string productId)
return GetPurchase(productId) > 0;
@Baroni Congrats on adding all these very cool new features!!!
I understand that PlayFab integration is being rolled out into phases, which makes it top priority, but is there a chance that we'll also see GameSparks integration sometime down the road?
Thanks @pako, I did take a look at GameSparks before. However, the current integration of PlayFab in Simple IAP System is very deep (coupled with the code workflow), so implementing another backend service would basically mean rewriting a major part. My decision in favor of PlayFab was made since PlayFab is roughly at the half price of GameSparks, has all features necessary - and even more important, PayPal, Facebook and Steam billing services, which I've wanted to expand on in SIS, to reach more people on desktop and WebGL games. Because of these points, a GameSparks integration is very unlikely.
Thanks @Baroni , Luckily I'm still testing the GameSparks implementation in my game, so it won't be that difficult to switch over. I've looked at both of GameSparks and PlayFab and they are pretty close, but with SIS support I have one more reason to switch to PlayFab.
I'm sorry to hear you're thinking of not integrating GameSparks! We're more configurable than Playfab, we offer support as standard, we offer access to the full platform in that price, Playfab have hidden costs and charges on top for 1st class features, we offer everything as standard.
I understand SIS support is important for your project, while our team has never used this particular asset before, I would recommend getting in touch before you switch as we may be able to work out a way to use both together so you don't need to migrate. https://support.gamesparks.net/support/home
I wish you all the best in your project regardless of which BaaS you chose to use!
@GameSparks_Clare, would you please not hijack my asset support thread for your advertising. There is a private message system on this forum as well.
Hi @GameSparks_Clare and thanks for the info. However, just to clarify things, I've done my research on Playfab and I know that they don't offer the full platform without extra charges as you do. But quite honestly, I've been VERY disappointed with your support and your documentation! So, it's not just SIS support for Playfab, it's a way out from poor documentation and support.
I' in the process of implementing SIS with Playfab, and I'm confused on how to import Playfab catalogue into my unity project using SIS (in IAP Settings). There seems to be incompatibilities.
So here are my questions:
1. Is it possible to import the JSON file downloaded from Playfab? (I managed to do it for currencies, I just had to name the file like the one from export, but couldn't do it for the catalogues)
2. Are all Playfab types of Bundles, Drop tables, container, etc, supported? (I tried to create the equivalent of my setup in Playfab into the IAP Settings, but couldn't find how to make drop tables and bundles giving anything else than currencies)
3. If answer to quest 1 and 2 is yes, is there anything in particular I need to do?
Hi @Daniel_Loyer, the JSON export/import is only supported in one way, specifically SIS to PlayFab. This also ensures that you are not using item types not supported by SIS. Please follow the PlayFab guide on our forums for installation instructions.
I haven't tested drop tables, but bundles and containers should work - in theory. SIS already uses bundles for virtual currency on the PlayFab side as well.
Ok, is there a plan to integrate a bit closer to Playfab? Items, drop tables, etc?
What do you mean by "Items" and "etc"? Note that the functionality is already there to some extent, since when granting new items via PlayFab, the player inventory gets synced with SIS on login. You could just call your own Cloud Script function for this, and refresh the inventory in-game.
PlayFab integration is in phase 1 now (as noted in our PlayFab guide) with a lot of things left to do. I'll revisit this for one of the next phases, but I will need more details on your use case.
Hi, I am currently developing a WebGL game and want to implement in app purchases, this asset seems to be what I am looking for, however I have a couple questions regarding this asset.
What are the possible payment options for WebGL games (I know there is Paypal and Facebook but are there any others)? Also on the Facebook option, does the game need to be a facebook game? Are all the products managed on playfab no matter the payment options?
you are right, PayPal and Facebook are both supported on WebGL. Yes, when deploying to Facebook, it needs to be a Facebook Canvas game - you can upload it directly to Facebook's servers using Unity's Facebook build target. PayPal requires PlayFab, but Facebook with Simple IAP System is using Unity IAP only (PlayFab does not support Facebook Canvas / Gameroom apps yet).
Hi @Baroni , thank you very much for your quick response, so if I don't go with the facebook option the only way for the players to pay is the paypal option? Is there no way for the player to pay with credit/debit card for our IAP?
PayPal offers credit card payments as you may know, but even in their guest payment workflow (not requiring an account), the payment is processed via PayPal. If you mean credit card payments without PayPal then no, that would actually require implementing a new payment provider, like Stripe.
Ok then, thank you very much for your help and quick answers.
---Export your products in the IAP Settings Editor before upgrading---
I'm sorry, could you help me understand better? I can't seem to find how to export my products in the Settings Editor window... I don't want to lose my IAP settings on the IAPManager prefab...
Also, is this compatible with Unity 2017? I'm getting these errors on a fresh import with 2017.2.0f1 ...
There is a button at the top of the IAP Settings window for exporting your configuration to a JSON file, and also a separate button for importing the configuration again.
You did not fully import Unity IAP. Please import it from the services window. If you think you've imported it, see in your Plugins > UnityPurchasing folder and look out for a UnityIAP unitypackage file. If it's there, double click to import.
Ah, I have an older version (3.2) that does not have the export option... is there any way I can still get version 3.3 to export my settings? I just left a 5 star review on the UAS but I can PM you my invoice number if need be. As is I own four of you assets.
Email is Christougher at Hotmail
Sure, send an email with your invoice no. to our support address.
Thx for the quick email!
Oddness... getting two of these errors... doesn't make sense...
Assets/SimpleIAPSystem/Editor/IAPEditorExporter.cs(20,34): error CS0117: `JSON' does not contain a definition for `Parse'
EDIT... never mind looks like a namespace conflict.... just added 'SimpleJSON.' to the offending lines of code and compiled just fine.
Hi, I was wondering if you could also provide some guidance for updating the following:
RemovePurchased -> RemovePurchase
SetToPurchased -> SetPurchase
IncrementPlayerData -> IncreasePlayerData
UnlockItems -> Refresh(productId), or RefreshAll
I haven't updated to 4.0 yet, but I see in the release notes that support for SmartLocalization is removed in 4.0. Is there any other plugin supported or any alternative to offline localization?
Hi @Banky, support for SmartLocalization has been removed as the developers stopped supporting it (they uploaded the code to github but do not maintain it anymore). Overall, demand for offline localization was very low. I might write an extension for the most popular Asset Store localization plugin at some point, but currently only online localization (for real money products in the App Store settings) is supported.
In my case I have a lot of virtual currency products in my game, so it would be great to have some support for offline localization!
Seems to be a problem with the latest update as simple IAP has disappeared from asset store despite a reminder that it's updated to version 4.02 today ..
noticed the same.
Thanks, resubmitted. Only a 2017.2+ compatibility update though, no other changes.
Edit: didn't help, sent a ticket to Unity support.
thanks for the update and reply.
Could you please add a way to let players to be able to pay for IAP using Bitcoin? (For WebGL and Standalone games)
Hi @Wajdik, I'm not developing billing plugins myself due to the massive support burden this would mean. That's why I am integrating chosen billing plugins from high responsive developers. If you find such a plugin with Bitcoin support, please let me know.
The asset is available in the Asset Store again - Unity support finally handled it.
Doesit support the same platform that Unity IAP?? (all of them)
@janiche all of the platforms Unity IAP supports, and more (+Oculus, +PayPal when using PlayFab). Please have a look at the "Supported Platforms" matrix on the first page too.
v4.1 released on the Asset Store:
- added support for Steam game IAPs: see the guide on our forums
- added shop message when trying to purchase but billing init failed
- removed support for Tizen since Unity stopped supporting it
I was patiently waiting for Steam transactions to be added on this asset, will be purchasing this asset right now! I also see that PlayFab has great features so I think they will be a good back-end to integrate with so I can manage things easier.
Do you know if PlayFab only supports receipt validation for Google Play and IOS or is this also available for Steam, PayPal, etc. Or do you not need to validate a receipt when using this for non-mobile platforms?
Thanks for the interest @ModularBuilds!
The main reason having mobile receipt verification is that you can also play those offline - with PayPal or Steam, you are always connected to your PlayFab managed account (online-only games), which cannot receive faulty receipts. PlayFab verifies those transactions automatically before adding them to the player's account.
Hi, I'm having an issue with purchasing.
I called SIS.IAPManager.PurchaseProduct (); and having this error:
IAPManager reports: PurchaseFailed. Error: Error: 1047, Item not found
SIS.IAPManager:OnPurchaseFailed(String) (at Assets/SimpleIAPSystem/Scripts/IAPManager.cs:616)
SIS.PlayfabStore:OnVirtualPurchaseFailed(PlayFabError) (at Assets/SimpleIAPSystem/Scripts/Extensions/PlayFab/PlayfabStore.cs:317)
PlayFab.Internal.<QueueRequestError>c__AnonStorey0:<>m__0() (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:274)
PlayFab.Internal.PlayFabWebRequest:Update() (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:363)
PlayFab.Internal.PlayFabHttp:Update() (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs:248)
How to fix this? Thanks.
Hi @SteveRyu, since the error is coming from the PlayFabStore class, I guess you are using PlayFab managed billing such as PayPal?
Did you log into a PlayFab account when you started the game (eg using our UserLogin scene) and did you upload your IAP Settings product export to the PlayFab dashboard as described in our documentation?
Yep, I followed documentation.
Also having strange issue, currency turned into "FAKE TITLE FOR" blah blah.
Not sure what's wrong with your project, probably it's not linked with the correct PlayFab title. Could you send some screenshots of your PlayFab dashboard showing the title ID, and your Unity PlayFab plugin settings (also showing the PlayFab ID) to our support email for privacy reasons?
I bought this asset long time ago, but I never used since now.
I'm using Unity 5.6.4.f1.
I imported Unity IAP, I enabled IAP service.
I got two errors:
1) Undefined namespace UnityEngine.Purchasing.Security (solved commenting out the unused using UnityEngine.Purchasing.Security from ReceiptValidatorClient.cs)
Assets/SimpleIAPSystem/Scripts/IAPManager.cs(859,21): error CS0246: The type or namespace name `StoreID' could not be found. Are you missing an assembly reference?
@Magic73 Unity IAP has not been installed correctly. See here:
Hi, is IncreasePlayerData don't work with playfab?
I'm using IncreasePlayerData to save user data, but it doesn't work fine. Every time I log in n log out, data was reset.
Hi @SteveRyu, please see chapter 8 in our PlayFab guide, "In-game Synchronization". There is no IncreasePlayerData method for PlayFab. You have to specifically call the methods mentioned in our guide on your PlayfabManager instance.