Forum Discussion
MintPot
9 years agoExplorer
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.
i make gearvr app.and i use unity3d .
i don't know.. In-App Purchases..
please..help me.
3 Replies
Replies have been turned off for this discussion
- cyberealityGrand Champion
- josh_rueschExplorerIn 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); - haulkwsHonored GuestCan I get a IAP tutorial?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device