@@ -78,15 +91,7 @@ onMounted(async () => {
-
- Gå till betalningssidan
-
+ Gå till betalningssidan
diff --git a/frontend/src/pages/GuestPaymentRedirect.vue b/frontend/src/pages/GuestPaymentRedirect.vue
index f3261b2..03d907e 100644
--- a/frontend/src/pages/GuestPaymentRedirect.vue
+++ b/frontend/src/pages/GuestPaymentRedirect.vue
@@ -9,7 +9,11 @@ const router = useRouter()
const route = useRoute()
const orderId = route.params.orderId as string
-const token = (route.query.token as string) || ''
+// Read token from sessionStorage (set by the checkout/order pages) so it
+// does not leak via the URL query string. Fall back to query.token for
+// backward compatibility with any existing magic links.
+const token =
+ sessionStorage.getItem('guestToken') || (route.query.token as string) || ''
const plate = ref((route.query.plate as string) || '')
const swishNumber = ref('')