Esempio n. 1
0
        public StoreManager()
        {
            iap         = new InAppPurchaseManager();
            theObserver = new CustomPaymentObserver(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(theObserver);
            Messenger.Instance.Register <PurchaseMessage>(this, OnPurchaseMessage);
            Messenger.Instance.Register <GetPriceMessage>(this, OnGetPriceMessage);
        }
 public CustomPaymentObserver(InAppPurchaseManager manager)
 {
     theManager = manager;
 }