Bugfixes und Bezahlen

This commit is contained in:
Moritz Utcke
2025-03-11 09:15:22 -03:00
parent 9b50053007
commit 8b489a94cc
13 changed files with 326 additions and 47 deletions

View File

@@ -7,7 +7,7 @@ import {
authorizationHeaders,
authorizationMiddleware,
} from "#lib/middleware/authorization.js";
import { UUidWithPrefix } from "#components/Ausweis/types.js";
import { getAusweisartFromUUID, UUidWithPrefix } from "#components/Ausweis/types.js";
import { getPrismaAusweisAdapter } from "#lib/server/ausweis.js";
import { PRICES, SERVICES } from "#lib/constants.js";
import { Rechnung } from "#lib/client/prisma.js";
@@ -162,7 +162,7 @@ export const PUT = defineApiRoute({
// Wir erstellen eine Mollie Payment Referenz.
const payment = await mollieClient.payments.create({
amount: {
value: "45.00",
value: betrag.toFixed(2),
currency: "EUR",
},
metadata: {
@@ -189,3 +189,5 @@ export const PUT = defineApiRoute({
};
},
});