[Bug] Swish QR fails to scan on desktop - margin, color, width non-compliant with ISO 18004 / Swish spec #22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Identified during advisory review of #17 (guest checkout).
Problem
GuestPaymentRedirect.vue(and the existingPaymentRedirect.vue) build the Swish QR with config that fails the Swish app's built-in scanner when displayed on a screen:margin: 2- must be4per ISO/IEC 18004 (2-module quiet zone fails to lock the finder pattern).#111827(dark gray) - Swish spec says "black and white" -> use#000000.width: 224- borderline for an ~80-90 char pre-fill URL; prefer >= 256.Desktop users (the QR target audience) literally cannot pay via QR. This is the documented root cause of Swish-QR outages.
Severity
Critical (blocks the primary payment path for desktop QR users)
Suggested fix
Update both
GuestPaymentRedirect.vueandPaymentRedirect.vue:margin: 4color: { dark: '#000000', light: '#ffffff' }width: 256(or larger)References