Phase7: Void/Refund logic

This commit is contained in:
2026-05-25 22:00:24 +02:00
parent e15a668f8e
commit 9b0bac2d3b
2 changed files with 8 additions and 2 deletions

View File

@@ -80,6 +80,9 @@ export async function POST(
{ status: 409 }
);
}
return NextResponse.json(safeError(e), { status: 500 });
return NextResponse.json(
{ error: safeError(e, "Refund failed") },
{ status: 500 }
);
}
}

View File

@@ -69,6 +69,9 @@ export async function POST(
{ status: 409 }
);
}
return NextResponse.json(safeError(e), { status: 500 });
return NextResponse.json(
{ error: safeError(e, "Void failed") },
{ status: 500 }
);
}
}