Update mail when subscription is on-hold

This commit is contained in:
vishnukvmd 2024-03-20 14:31:01 +05:30
parent 628565cfaf
commit db81f52cf1
2 changed files with 5 additions and 4 deletions

View file

@ -215,11 +215,11 @@
has informed us that
they were
unable to renew your
ente subscription.
subscription.
Please update your
payment method
within
{{.PaymentProvider}}
the app
so that your
subscription can be
renewed.</div>

View file

@ -464,8 +464,9 @@ func (c *StripeController) handlePaymentIntentFailed(event stripe.Event, country
return ente.StripeEventLog{}, stacktrace.Propagate(err, "")
}
err = email.SendTemplatedEmail([]string{user.Email}, "ente", "support@ente.io",
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, "")
}