public BraintreePaymentService(BraintreeSettings braintreeSettings, CartModel cartModel, IOrderPlacementService orderPlacementService, ILogAdminService logAdminService) { _braintreeSettings = braintreeSettings; _cartModel = cartModel; _orderPlacementService = orderPlacementService; _logAdminService = logAdminService; }
public RedirectToRouteResult Save([IoCModelBinder(typeof(BraintreeSettingsModelBinder))] BraintreeSettings settings) { _configurationProvider.SaveSettings(settings); return(RedirectToAction("Index")); }
public BraintreeService(IOptions <AppSettings> _appSettings) { btSettings = _appSettings.Value.BraintreeSettings; sdSettings = _appSettings.Value.SendGridSetting; gateway = CreateGateway(); }