Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentProvider" /> class.
 /// </summary>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="braintreeService">The braintree service.</param>
 public PaymentProvider(
     ISettingsService settingsService,
     IBraintreeService braintreeService)
 {
     this.settingsService  = settingsService;
     this.braintreeService = braintreeService;
 }
Beispiel #2
0
        public BraintreeController(IOrchardServices orchardServices, IRepository <PaymentRecord> repository, IPaymentEventHandler paymentEventHandler, IBraintreeService braintreeService)
        {
            _orchardServices  = orchardServices;
            _posService       = new BraintreePosService(orchardServices, repository, paymentEventHandler);
            _braintreeService = braintreeService;

            Logger = NullLogger.Instance;
            T      = NullLocalizer.Instance;
        }
Beispiel #3
0
        public BraintreeController(
            IOrchardServices orchardServices,
            IBraintreeService braintreeService,
            IBraintreePosService posService)
        {
            _orchardServices  = orchardServices;
            _posService       = posService;
            _braintreeService = braintreeService;

            Logger = NullLogger.Instance;
            T      = NullLocalizer.Instance;
        }
Beispiel #4
0
 public CheckoutController(IBookService bookService, IBraintreeService braintreeService)
 {
     _bookService      = bookService;
     _braintreeService = braintreeService;
 }
Beispiel #5
0
 public Paypal(IOrchardServices orchardServices, IBraintreeService braintreeService)
 {
     _orchardServices  = orchardServices;
     _braintreeService = braintreeService;
 }
 public CheckoutController(IBraintreeService braintreeService, AppDbContext appDbContext)
 {
     _braintreeService = braintreeService;
     _appDbContext     = appDbContext;
 }
 public CheckoutController(IBraintreeService braintreeService)
 {
     // _bookService = courseService;
     _braintreeService = braintreeService;
 }