Show specific counts and amounts in confirmation bars

This commit is contained in:
Ian Gulliver
2025-12-30 12:14:44 -08:00
parent 06221a0d16
commit 772f804de6
2 changed files with 7 additions and 2 deletions

View File

@@ -367,7 +367,8 @@ func handleDonateSuccess(w http.ResponseWriter, r *http.Request) {
log.Println("[ERROR] failed to process payment:", err)
}
http.Redirect(w, r, fmt.Sprintf("/%s?donated=1", eventID), http.StatusSeeOther)
amount := float64(sess.AmountTotal) / 100
http.Redirect(w, r, fmt.Sprintf("/%s?donated=%.2f", eventID, amount), http.StatusSeeOther)
}
func handleStripeWebhook(w http.ResponseWriter, r *http.Request) {