protected PaymentStep(IPayment payment, MarketId marketId, KlarnaOrderServiceFactory klarnaOrderServiceFactory) { MarketId = marketId; PaymentMethod = PaymentManager.GetPaymentMethod(payment.PaymentMethodId); if (PaymentMethod != null) { KlarnaOrderService = klarnaOrderServiceFactory.Create(PaymentMethod.GetConnectionConfiguration(marketId)); } }
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; }
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; }
public CancelPaymentStep(IPayment payment, MarketId marketId, KlarnaOrderServiceFactory klarnaOrderServiceFactory) : base(payment, marketId, klarnaOrderServiceFactory) { }
protected AuthorizePaymentStepBase(IPayment payment, MarketId marketId, KlarnaOrderServiceFactory klarnaOrderServiceFactory) : base(payment, marketId, klarnaOrderServiceFactory) { }
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) { }