public HostedProductsViewController ()
		{
			// two products for sale on this page
			products = new List<string>() {hostedImagesProductId, hostedFilesystemProductId};
			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);
		}
Ejemplo n.º 2
0
        public HostedProductsViewController()
        {
            // two products for sale on this page
            products = new List <string>()
            {
                hostedImagesProductId, hostedFilesystemProductId
            };
            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);
        }
 public InAppPurchaseManager()
 {
     theObserver = new CustomPaymentObserver(this);
     SKPaymentQueue.DefaultQueue.AddTransactionObserver(theObserver);
 }
Ejemplo n.º 4
0
 public InAppPurchaseManager()
 {
     theObserver = new CustomPaymentObserver(this);
     SKPaymentQueue.DefaultQueue.AddTransactionObserver(theObserver);
 }