Make Purchases through Apple Store
Last updated
Last updated
You can redeem Purchases to specifically the Player and even a Class that the Player owns!
Navigate to the page, and find Monetization
, Underneath you'll find In-App Purchases
which is where you will create the Products and find the necessary information.
As you create a new In App Purchase, you need to pick a Type, a Reference Name and finally a Product ID. Create the Product and save the Product ID to create IAP with LootLocker.
To create Purchases in Unity, you must inherit from IDetailedStoreListener
and import the required methods that follows.
This is how you add products to your IAPManager:
Here is how you'd initiate a Purchase:
This snippet shows you how you'll connect LootLocker IAP to the flow:
This is the complete script:
Product
is from using UnityEngine.Purchasing;
Product
is from using UnityEngine.Purchasing;
In this example LootLockerIAPManager.cs has a RedeemPurchase(Product product)
method which will be described underneath and
Which is a Package called "In-App Purchasing", read more .
Which is a Package called "In-App Purchasing", read more .