/// <summary>
 /// Initializes a new instance of the <see cref="EPayPageBuilder"/> class.
 /// </summary>
 public EPayPageBuilder(EPayMd5Computer md5Computer, ICallbackUrl callbackUrl, IAbsoluteUrlService absoluteUrlService)
 {
     _callbackUrl        = callbackUrl;
     _absoluteUrlService = absoluteUrlService;
     LocalizationContext = new CustomGlobalization();
     Md5Computer         = md5Computer;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="QuickpayPageBuilder"/> class.
 /// </summary>
 public QuickpayPageBuilder(QuickpayMd5Computer md5Computer, IAbsoluteUrlService absoluteUrlService, ICallbackUrl callbackUrl)
 {
     _absoluteUrlService = absoluteUrlService;
     _callbackUrl        = callbackUrl;
     LocalizationContext = new CustomGlobalization();
     Md5Computer         = md5Computer;
 }
Пример #3
0
 public SchibstedPageBuilder(SchibstedSha256Computer sha256Computer, ILoggingService loggingService, IAbsoluteUrlService absoluteUrlService, ICallbackUrl callbackUrl)
 {
     _absoluteUrlService = absoluteUrlService;
     _callbackUrl        = callbackUrl;
     Sha256Computer      = sha256Computer;
     LoggingService      = loggingService;
     LocalizationContext = new CustomGlobalization();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NetaxeptPaymentMethodService"/> class.
 /// </summary>
 public NetaxeptPaymentMethodService(
     ILoggingService loggingService,
     IAbsoluteUrlService absoluteUrlService,
     ICallbackUrl callbackUrl)
 {
     _loggingService     = loggingService;
     _absoluteUrlService = absoluteUrlService;
     _callbackUrl        = callbackUrl;
     LocalizationContext = new CustomGlobalization();
 }
        private void sendCustomerWelcomeEmail(string email, string password, int customerId, string memberId, string orderNumber, string orderGuid, string cultureCode, EmailProfile emailProfile)
        {
            var queryStringParameters = new Dictionary <string, string>
            {
                { "customerId", customerId.ToString() },
                { "memberId", memberId },
                { "orderNumber", orderNumber },
                { "orderGuid", orderGuid },
                { "User.Username", email },
                { "User.Password", password }
            };

            try
            {
                var customGlobalization = new CustomGlobalization(_commerceConfiguration);
                customGlobalization.SetCulture(new CultureInfo(String.IsNullOrWhiteSpace(cultureCode) ? customGlobalization.DefaultCulture.ToString() : cultureCode));
                _emailService.Send(customGlobalization, emailProfile, _emailTypeName, new MailAddress(email), queryStringParameters);
            }
            catch (SmtpException exception)
            {
                _loggingService.Log <CreateMemberForCustomerTask>(exception);
            }
        }
 public AdyenPageBuilder(ICallbackUrl callbackUrl)
 {
     _callbackUrl        = callbackUrl;
     LocalizationContext = new CustomGlobalization();
 }