[MM-30984] Missing payment email on billing day if no CC is present (#16442)

* Adding email and scaffolding for payment failure in case where customer has not added payment method

* Adding email template

* Remove unused boolean

* Fix error

* Add Email Us verbiage

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Nick Misasi
2020-12-03 16:02:43 -05:00
committed by GitHub
parent 9e968a9ef1
commit fa5a033f66
8 changed files with 180 additions and 2 deletions

View File

@@ -353,7 +353,11 @@ func handleCWSWebhook(c *Context, w http.ResponseWriter, r *http.Request) {
c.Err = nErr
return
}
case model.EventTypeFailedPaymentNoCard:
if nErr := c.App.SendNoCardPaymentFailedEmail(); nErr != nil {
c.Err = nErr
return
}
}
ReturnStatusOK(w)