Include details.gohtml when rendering payments/request.gohtml
This commit is contained in:
parent
4a7b0112ef
commit
95ae50c1c3
|
@ -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) {
|
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)
|
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) {
|
func handleSuccessfulPayment(w http.ResponseWriter, r *http.Request, user *auth.User, company *auth.Company, conn *database.Conn, payment *Payment) {
|
||||||
var head string
|
var head string
|
||||||
|
|
Loading…
Reference in New Issue