Example #1
0
        /// <summary>
        /// Creates the main tracker object
        /// </summary>
        /// <param name="httpClient"></param>
        /// <param name="storage">Choice of storage</param>
        public Tracker(HttpClient httpClient, IStorage storage)
        {
            this.Storage = storage;
            this.TmpData = new TemporaryData();

            SetupNotifications();

            this.ApiInteractor = new ApiInteractor(httpClient, this.Storage.GetStoreModel().ApiCredentials);

            // Check for token in storage
            if (HasValidTokenInStorage())
            {
                SetValidTokenFromStorage();
            }
        }
Example #2
0
 public PaymentController(EpayContext context, ApiInteractor apiInteractor)
 {
     _context       = context;
     _apiInteractor = apiInteractor;
 }