public static bool Init() { if (m_iap != null) { return(true); } //m_removeAdsProductId = new NSString(AdsID); m_iap = new PurchaseManager(); m_observer = new CustomPaymentObserver(m_iap); // Call this once upon startup of in-app-purchase activities // This also kicks off the TransactionObserver which handles the various communications SKPaymentQueue.DefaultQueue.AddTransactionObserver(m_observer); return(true); }
public CustomPaymentObserver(PurchaseManager manager) { theManager = manager; }