Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public CustomPaymentObserver(PurchaseManager manager)
 {
     theManager = manager;
 }