void OnInitializationFailed(object sender, InitializationEventArgs e) { Log("InitializationFailed: " + Json.Serialize(e.invalidIDs)); }
void OnInitializationCompleted(object sender, InitializationEventArgs e) { Log("InitializationCompleted"); SKProduct product = IAPXT.GetProduct(premiumProductID); if ( product == null ) { Log ("Error: Product not defined: " + premiumProductID); return; } Log("title: " + product.localizedTitle); Log("description: " + product.localizedDescription); var price = product.price; Log("price type: " + price.GetType()); Log("price: " + price); Log("localized price: " + product.localizedPrice); }