Hi,
I'm trying to setup In App Purchases in Unity, but I can't trigger the Steam Overlay for the user to confirm the purchase.
I'm calling PlayFabClient.PayForPurchase, and getting a callback result with the "Init" status:
void StartPurchaseCallback(StartPurchaseResult result) { PlayFabClientAPI.PayForPurchase(new PayForPurchaseRequest() { OrderId = result.OrderId, ProviderName = "Steam", Currency = "RM" }, PurchaseConfirmation, ErrorCallback ); } void PurchaseConfirmation(PayForPurchaseResult result) { Debug.Log("Order successful!"); Debug.Log(result.Status.Value.ToString()); }
I'm logged in with steam, but the overlay simply doesn't trigger.
I've tried a few of the other solutions I found, like running from steam, building with Mono instead of IL2CPP, and moving the game to steamapps/common, but none of those work for me.
Any help is appreciated, thanks!
,Hi,
I'm trying to setup IAP with Steam in Unity and facepunch. I authenticate fine, but whenever I try to trigger an IAP using PlayFabClientAPI.PayForPurchase, it doesn't trigger the steam overlay for the user to confirm the purchase.
void StartPurchaseCallback(StartPurchaseResult result) { PlayFabClientAPI.PayForPurchase(new PayForPurchaseRequest() { OrderId = result.OrderId, ProviderName = "Steam", Currency = "RM" }, PurchaseConfirmation, ErrorCallback ); } void PurchaseConfirmation(PayForPurchaseResult result) { Debug.Log("Order successful!"); Debug.Log(result.Status.Value.ToString()); }
I get a PurchaseConfirmation with the result status as "Init", but it just never triggers the overlay.
I've tried some of the solutions I tried on other threads, like running the game from steam, and placing it in steamapps/common, but it just doesnt trigger.
Any help is appreciated!