We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 102b4a7 commit 9525ceeCopy full SHA for 9525cee
src/app/api/mercado-pago/pending/route.ts
@@ -16,7 +16,7 @@ export async function GET(req: NextRequest) {
16
const paymentData = await payment.get({ id: paymentId });
17
18
if (paymentData.status === 'approved' || paymentData.date_approved !== null) {
19
- return NextResponse.redirect(new URL('success', req.url));
+ return NextResponse.redirect(new URL('/success', req.url));
20
}
21
22
return NextResponse.json(new URL('/', req.url));
0 commit comments