Bestellen auf Rechnung
This commit is contained in:
@@ -37,7 +37,7 @@ export const PUT = defineApiRoute({
|
||||
})
|
||||
),
|
||||
output: z.object({
|
||||
checkout_url: z.string(),
|
||||
checkout_url: z.string().optional(),
|
||||
uid: UUidWithPrefix,
|
||||
}),
|
||||
headers: authorizationHeaders,
|
||||
@@ -113,6 +113,10 @@ export const PUT = defineApiRoute({
|
||||
});
|
||||
}
|
||||
|
||||
if (bezahlmethode === Enums.Bezahlmethoden.rechnung) {
|
||||
return { uid: rechnung.uid }
|
||||
}
|
||||
|
||||
// Wir erstellen eine Mollie Payment Referenz.
|
||||
const payment = await mollieClient.payments.create({
|
||||
amount: {
|
||||
|
||||
Reference in New Issue
Block a user