public PaymentBitpayController(IWorkContext workContext, IStoreService storeService, ISettingService settingService, ILocalizationService localizationService, BitpayPaymentSettings bitpaySettings, HttpContextBase httpContext, IOrderService orderService, IOrderProcessingService orderProcessingService) { _workContext = workContext; _storeService = storeService; _settingService = settingService; _localizationService = localizationService; _bitpaySettings = bitpaySettings; _httpContext = httpContext; _orderService = orderService; _orderProcessingService = orderProcessingService; }
public static string GetEnvironmentUrl(BitpayPaymentSettings settings) { return(settings.UseSandbox ? "https://test.bitpay.com/" : "https://bitpay.com/"); }
public static string GetEnvironmentUrl(BitpayPaymentSettings settings) { return(string.IsNullOrEmpty(settings.CustomUrl) ? settings.UseSandbox ? "https://test.bitpay.com/" : "https://bitpay.com/" : settings.CustomUrl); }