Ejemplo n.º 1
0
        public PartialViewResult GetTransactionPage(string opddewq)
        {
            LoggingService.Info(GetType());

            if (rulesEngineService.IsCustomerPaymentsEnabled())
            {
                string partialView = paymentProviderFactory
                                     .GetTransactionPartialView(UmbracoContext, true);

                TransactionViewModel viewModel = paymentManager.GetTransactionViewModel(UmbracoContext, opddewq);

                return(PartialView(partialView, viewModel));
            }

            return(default(PartialViewResult));
        }
Ejemplo n.º 2
0
        public PartialViewResult ViewTransaction(string id)
        {
            LoggingService.Info(GetType(), "Id=" + id);

            if (rulesEngineService.IsCustomerPaymentsEnabled())
            {
                string partialView = paymentProviderFactory
                                     .GetTransactionPartialView(UmbracoContext, false);

                BraintreeTransactionViewModel viewModel = braintreeManager.GetTransactionViewModel(UmbracoContext, id);

                return(PartialView(partialView, viewModel));
            }

            return(default(PartialViewResult));
        }