Skip to main content
July 18, 2016

How does the In-App Purchases in unity3d?

How does the In-App Purchases in unity3d?
Do you have references?
i make gearvr app.and  i use unity3d .
i don't know.. In-App Purchases..
please..help me.
This topic has been closed for replies.

3 replies

Inspiring
July 18, 2016
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
Participant
July 18, 2016
In order to fetch all the available IAP items:

private void handleProducts(Oculus.Platform.Message<Oculus.Platform.Models.MessageWithProductList> message) {
      var productList = message.GetProductList ();
    }  

Oculus.Platform.IAP.GetProductsBySKU(new string[]{"sku1", "sku2"}).OnComplete (handleProducts);
 
    

In order to fetch all the IAP items that the current user has purchases:

private void handlePurchases(Oculus.Platform.Message<Oculus.Platform.Models.MessageWithPurchaseList> message) {
      var purchaseList = message.GetPurchaseList ();
    } 
  
Oculus.Platform.IAP.GetViewerPurchases().OnComplete (handlePurchases);


New Participant
July 19, 2016
Can I get a IAP tutorial?