Include details.gohtml when rendering payments/request.gohtml

This commit is contained in:
jordi fita mas 2024-02-13 05:53:11 +01:00
parent 4a7b0112ef
commit 95ae50c1c3
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func (p *paymentPage) MustRender(w http.ResponseWriter, r *http.Request, user *a
if err := conn.QueryRow(r.Context(), "select environment from redsys where company_id = $1", company.ID).Scan(&p.Environment); err != nil && !database.ErrorIsNotFound(err) {
panic(err)
}
template.MustRenderPublic(w, r, user, company, "payment/request.gohtml", p)
template.MustRenderPublicFiles(w, r, user, company, p, "payment/request.gohtml", "payment/details.gohtml")
}
func handleSuccessfulPayment(w http.ResponseWriter, r *http.Request, user *auth.User, company *auth.Company, conn *database.Conn, payment *Payment) {
var head string