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 } }
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 } }
/// <summary> /// Track an in-app purchase. /// </summary> public void ProductPurchaseTrackingRequest(Purchase purchase, PurchaseResolution resolution) { PlayHavenBinding.SendIAPTrackingRequest(purchase, resolution); }
/// <summary> /// Resolve a purchase request (buy, cancel, fail). /// </summary> public void ProductPurchaseResolutionRequest(PurchaseResolution resolution) { PlayHavenBinding.SendProductPurchaseResolution(resolution); }