/** Installs a purchase observer. * * @param autoFetchInformation tells PurchaseManager to automatically fetch offer details on setup to make * {@link PurchaseSystem#getInformation(String)} work properly **/ public static void install (PurchaseObserver observer, PurchaseManagerConfig config, boolean autoFetchInformation) { if (hasManager()) { manager.install(observer, config, autoFetchInformation); } else { observer.handleInstallError(new RuntimeException("No purchase manager was available.")); } }