public PaymentStatusesController( IPaymentGatewayProcessorProxy paymentGatewayProcessorProxy, IMapper mapper) { _paymentGatewayProcessorProxy = paymentGatewayProcessorProxy; _mapper = mapper; }
public PaymentService( IPaymentGatewayProcessorProxy paymentGatewayProcessorProxy, IPaymentGatewayProxy paymentGatewayProxy, IConfiguration configuration) { _paymentGatewayProcessorProxy = paymentGatewayProcessorProxy; _paymentGatewayProxy = paymentGatewayProxy; if (!Guid.TryParse(configuration["MerchantId"], out merchantIdGuid)) { throw new ArgumentNullException("MerchantId"); } }