Update mail when subscription is on-hold
This commit is contained in:
parent
628565cfaf
commit
db81f52cf1
2 changed files with 5 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -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, "")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue