package views import ( "fmt" "shop.tonybtw.com/internal/models" ) templ Checkout(items []models.Cart_Item_Detail, total int, csrf_token string, cart_count int) { @Layout("Checkout") {

Checkout

Order Summary

for _, item := range items { }
{ item.Name } ({ item.Size }) x{ templ.EscapeString(fmt.Sprintf("%d", item.Quantity)) } { Format_Price(item.Subtotal) }
Total { Format_Price(total) }

You'll be redirected to Stripe to complete your purchase.

} }