π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update mail when subscription is on-hold
vishnukvmddb81f52cf13c
diff --git a/server/mail-templates/on_hold.html b/server/mail-templates/on_hold.htmlindex 612570aecf..b53ac5df89 100644--- a/server/mail-templates/on_hold.html+++ b/server/mail-templates/on_hold.html@@ -215,11 +215,11 @@has informed us thatthey wereunable to renew your- ente subscription.+ subscription.Please update yourpayment methodwithin- {{.PaymentProvider}}+ the appso that yoursubscription can berenewed.</div>diff --git a/server/pkg/controller/stripe.go b/server/pkg/controller/stripe.goindex 115cb3c1d1..d20abc9d74 100644--- a/server/pkg/controller/stripe.go+++ b/server/pkg/controller/stripe.go@@ -464,8 +464,9 @@ func (c *StripeController) handlePaymentIntentFailed(event stripe.Event, countryreturn ente.StripeEventLog{}, stacktrace.Propagate(err, "")}err = email.SendTemplatedEmail([]string{user.Email}, "ente", "[email protected]",- ente.SubscriptionEndedEmailSubject, ente.SubscriptionEndedEmailTemplate,- map[string]interface{}{}, nil)+ ente.AccountOnHoldEmailSubject, ente.OnHoldTemplate, map[string]interface{}{+ "PaymentProvider": "Stripe",+ }, nil)if err != nil {return ente.StripeEventLog{}, stacktrace.Propagate(err, "")}