This commit is contained in:
binwiederhier
2025-07-04 06:41:14 +02:00
parent 7b470a7f6f
commit 5ccc131e73
5 changed files with 50 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ func New(conf *Config) (*Server, error) {
mailer = &smtpSender{config: conf}
}
var stripe stripeAPI
if conf.StripeSecretKey != "" {
if hasStripe && conf.StripeSecretKey != "" {
stripe = newStripeAPI()
}
messageCache, err := createMessageCache(conf)