Skip to content

Commit f2e9e95

Browse files
committed
Fixed "At least one payment method provider is required to be active." during installation
1 parent 192a839 commit f2e9e95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Libraries/SmartStore.Services/Payments/PaymentService.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using SmartStore.Core.Data;
45
using SmartStore.Core.Domain.Orders;
56
using SmartStore.Core.Domain.Payments;
6-
using SmartStore.Core.Infrastructure;
77
using SmartStore.Core.Plugins;
88
using SmartStore.Services.Configuration;
99
using SmartStore.Services.Localization;
@@ -79,7 +79,8 @@ public virtual IEnumerable<Provider<IPaymentMethod>> LoadActivePaymentMethods(in
7979
}
8080
else
8181
{
82-
throw Error.Application("At least one payment method provider is required to be active.");
82+
if (DataSettings.DatabaseIsInstalled())
83+
throw Error.Application("At least one payment method provider is required to be active.");
8384
}
8485
}
8586

0 commit comments

Comments
 (0)