Beispiel #1
0
 public PayPalPayment(IServiceProvider _serviceProvider)
 {
     this._serviceProvider = _serviceProvider;
     _options = _serviceProvider.GetService <IOptions <PayPalOptions> >().Value;
     _options.Verify();
     _logger           = _serviceProvider.GetService <ILoggerFactory>().CreateLogger <PayPalPayment>();
     _braintreeGateway = new BraintreeGateway(_options.AccessToken);
 }
Beispiel #2
0
 public PayPalClient(IOptionsMonitor <PayPalOptions> optionsMonitor) : base(optionsMonitor.CurrentValue.GetEnvironment())
 {
     _options = optionsMonitor.CurrentValue;
 }