From c9eb47860d2dda5528c31568f15884fc0a9faac4 Mon Sep 17 00:00:00 2001 From: Priec Date: Sun, 21 Jun 2026 20:19:58 +0200 Subject: [PATCH] properly working csrf at checkout fixed now --- assets/views/shop/checkout.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/views/shop/checkout.html b/assets/views/shop/checkout.html index a1b650c..d2d859e 100644 --- a/assets/views/shop/checkout.html +++ b/assets/views/shop/checkout.html @@ -21,8 +21,7 @@ packetaKey: '{{ packeta_api_key }}', fmt(c) { return (c / 100).toFixed(2) }, pickPoint() { - Packeta.Widget.pick(this.packetaKey, (point) => - {{ ui::csrf_field() }} { + Packeta.Widget.pick(this.packetaKey, (point) => { if (point) { this.pointId = String(point.id); this.pointName = point.formatedValue || point.name } }) }, @@ -31,6 +30,7 @@ } }" class="mt-6 grid gap-8 lg:grid-cols-3"> + {{ ui::csrf_field() }}