Esempio n. 1
0
        protected PaymentStep(IPayment payment, MarketId marketId, KlarnaOrderServiceFactory klarnaOrderServiceFactory)
        {
            MarketId = marketId;

            PaymentMethod = PaymentManager.GetPaymentMethod(payment.PaymentMethodId);
            if (PaymentMethod != null)
            {
                KlarnaOrderService = klarnaOrderServiceFactory.Create(PaymentMethod.GetConnectionConfiguration(marketId));
            }
        }
Esempio n. 2
0
 public KlarnaCheckoutService(
     IOrderGroupTotalsCalculator orderGroupTotalsCalculator,
     IOrderRepository orderRepository,
     IPaymentProcessor paymentProcessor,
     IOrderGroupCalculator orderGroupCalculator,
     IKlarnaOrderValidator klarnaOrderValidator,
     KlarnaOrderServiceFactory klarnaOrderServiceFactory)
     : base(orderRepository, paymentProcessor, orderGroupCalculator)
 {
     _orderGroupTotalsCalculator = orderGroupTotalsCalculator;
     _orderRepository            = orderRepository;
     _klarnaOrderValidator       = klarnaOrderValidator;
     _klarnaOrderServiceFactory  = klarnaOrderServiceFactory;
 }
Esempio n. 3
0
 public KlarnaCheckoutService(
     IOrderRepository orderRepository,
     IPaymentProcessor paymentProcessor,
     IOrderGroupCalculator orderGroupCalculator,
     IKlarnaOrderValidator klarnaOrderValidator,
     IMarketService marketService,
     ICheckoutConfigurationLoader checkoutConfigurationLoader,
     KlarnaOrderServiceFactory klarnaOrderServiceFactory)
     : base(orderRepository, paymentProcessor, orderGroupCalculator, marketService)
 {
     _orderGroupCalculator        = orderGroupCalculator;
     _orderRepository             = orderRepository;
     _klarnaOrderValidator        = klarnaOrderValidator;
     _marketService               = marketService;
     _checkoutConfigurationLoader = checkoutConfigurationLoader;
     _klarnaOrderServiceFactory   = klarnaOrderServiceFactory;
 }
Esempio n. 4
0
 public CancelPaymentStep(IPayment payment, MarketId marketId, KlarnaOrderServiceFactory klarnaOrderServiceFactory)
     : base(payment, marketId, klarnaOrderServiceFactory)
 {
 }
Esempio n. 5
0
 protected AuthorizePaymentStepBase(IPayment payment, MarketId marketId, KlarnaOrderServiceFactory klarnaOrderServiceFactory)
     : base(payment, marketId, klarnaOrderServiceFactory)
 {
 }
Esempio n. 6
0
 public AuthorizePaymentStep(
     IPayment payment, MarketId marketMarketId, KlarnaOrderServiceFactory klarnaOrderServiceFactory, IKlarnaPaymentsService klarnaPaymentService)
     : base(payment, marketMarketId, klarnaOrderServiceFactory)
 {
     _klarnaPaymentService = klarnaPaymentService;
 }
 public ReleaseRemainingPaymentStep(IPayment payment, MarketId marketId, KlarnaOrderServiceFactory klarnaOrderServiceFactory)
     : base(payment, marketId, klarnaOrderServiceFactory)
 {
 }