예제 #1
0
        public static void SendIAPTrackingRequest(Purchase purchase, PurchaseResolution resolution)
        {
            if (!Application.isEditor)
            {
#if UNITY_IPHONE
                _PlayHavenIAPTrackingRequest(token, secret, purchase.productIdentifier, purchase.quantity, (int)resolution);
#elif UNITY_ANDROID && ANDROID_IAP_SUPPORT
                PlayHavenBinding.obj_PlayHavenFacade.Call("iapTrackingRequest", purchase.productIdentifier, purchase.quantity, (int)resolution);
#endif
            }
        }
예제 #2
0
        public static void SendProductPurchaseResolution(PurchaseResolution resolution)
        {
            if (!Application.isEditor)
            {
#if UNITY_IPHONE
                _PlayHavenProductPurchaseResolution((int)resolution);
#elif UNITY_ANDROID && ANDROID_IAP_SUPPORT
                PlayHavenBinding.obj_PlayHavenFacade.Call("reportResolution", (int)resolution);
#endif
            }
        }
예제 #3
0
 /// <summary>
 /// Track an in-app purchase.
 /// </summary>
 public void ProductPurchaseTrackingRequest(Purchase purchase, PurchaseResolution resolution)
 {
     PlayHavenBinding.SendIAPTrackingRequest(purchase, resolution);
 }
예제 #4
0
 /// <summary>
 /// Resolve a purchase request (buy, cancel, fail).
 /// </summary>
 public void ProductPurchaseResolutionRequest(PurchaseResolution resolution)
 {
     PlayHavenBinding.SendProductPurchaseResolution(resolution);
 }