+ {{ value.slice(0, 32) }}...
+
+ 📱
-QR Code
-
- {{ context.clinkOffer.slice(0, 24) }}...
-
- Open your Lightning wallet and scan the code
diff --git a/lamassu-next/apps/machine/src/views/CashOutView.vue b/lamassu-next/apps/machine/src/views/CashOutView.vue index 80ee0f9..af22593 100644 --- a/lamassu-next/apps/machine/src/views/CashOutView.vue +++ b/lamassu-next/apps/machine/src/views/CashOutView.vue @@ -7,6 +7,7 @@ import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/com import { Badge } from '@/components/ui/badge' import { Alert, AlertDescription } from '@/components/ui/alert' import { Skeleton } from '@/components/ui/skeleton' +import QRCode from '@/components/QRCode.vue' const router = useRouter() const atmStore = useAtmStore() @@ -115,18 +116,7 @@ function formatSats(sats: number): string {📱
-QR Code
-
- {{ context.invoice.slice(0, 24) }}...
-
- Waiting for payment...
diff --git a/lamassu-next/pnpm-lock.yaml b/lamassu-next/pnpm-lock.yaml index efe5f40..c153c23 100644 --- a/lamassu-next/pnpm-lock.yaml +++ b/lamassu-next/pnpm-lock.yaml @@ -50,6 +50,9 @@ importers: pinia: specifier: ^2.2.0 version: 2.3.1(typescript@5.9.3)(vue@3.5.27(typescript@5.9.3)) + qrcode.vue: + specifier: ^3.6.0 + version: 3.6.0(vue@3.5.27(typescript@5.9.3)) reka-ui: specifier: ^2.7.0 version: 2.7.0(typescript@5.9.3)(vue@3.5.27(typescript@5.9.3)) @@ -1459,6 +1462,11 @@ packages: engines: {node: '>=14'} hasBin: true + qrcode.vue@3.6.0: + resolution: {integrity: sha512-vQcl2fyHYHMjDO1GguCldJxepq2izQjBkDEEu9NENgfVKP6mv/e2SU62WbqYHGwTgWXLhxZ1NCD1dAZKHQq1fg==} + peerDependencies: + vue: ^3.0.0 + reka-ui@2.7.0: resolution: {integrity: sha512-m+XmxQN2xtFzBP3OAdIafKq7C8OETo2fqfxcIIxYmNN2Ch3r5oAf6yEYCIJg5tL/yJU2mHqF70dCCekUkrAnXA==} peerDependencies: @@ -2701,6 +2709,10 @@ snapshots: prettier@3.8.1: {} + qrcode.vue@3.6.0(vue@3.5.27(typescript@5.9.3)): + dependencies: + vue: 3.5.27(typescript@5.9.3) + reka-ui@2.7.0(typescript@5.9.3)(vue@3.5.27(typescript@5.9.3)): dependencies: '@floating-ui/dom': 1.7.4