This commit is contained in:
Moritz Utcke
2025-04-09 13:54:39 -04:00
parent 8860750487
commit f5ae2cd0d4
3 changed files with 4 additions and 10 deletions

View File

@@ -216,9 +216,9 @@ export const PUT = defineApiRoute({
},
method: input.bezahlmethode as PaymentMethod,
description: "Verbrauchsausweis Wohnen 2016",
redirectUrl: `https://ibcornelsen.de/payment/success?a=${ausweis.id}&r=${rechnung.id}`,
webhookUrl: `https://ibcornelsen.de/api/webhooks/mollie?id=${rechnung.id}`,
cancelUrl: `https://ibcornelsen.de/kundendaten?a=${ausweis.id}&r=${rechnung.id}`
redirectUrl: `https://online-energieausweis.org/payment/success?a=${ausweis.id}&r=${rechnung.id}`,
webhookUrl: `https://online-energieausweis.org/api/webhooks/mollie`,
cancelUrl: `https://online-energieausweis.org/kundendaten?a=${ausweis.id}&r=${rechnung.id}`
});
const checkoutUrl = payment.getCheckoutUrl();

View File

@@ -21,9 +21,6 @@ export const POST = defineApiRoute({
const payment = await mollieClient.payments.get(id);
const metadata = payment.metadata as { rechnung_id: string }
console.log(payment, metadata, id);
if (!payment) {
throw new APIError({
code: "NOT_FOUND",
@@ -45,9 +42,6 @@ export const POST = defineApiRoute({
},
});
console.log(rechnung);
if (!rechnung) {
throw new APIError({
code: "NOT_FOUND",