Skip to content

Commit 9525cee

Browse files
committed
fix: fix redirect from payment mp
1 parent 102b4a7 commit 9525cee

File tree

1 file changed

+1
-1
lines changed
  • src/app/api/mercado-pago/pending

1 file changed

+1
-1
lines changed

src/app/api/mercado-pago/pending/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function GET(req: NextRequest) {
1616
const paymentData = await payment.get({ id: paymentId });
1717

1818
if (paymentData.status === 'approved' || paymentData.date_approved !== null) {
19-
return NextResponse.redirect(new URL('success', req.url));
19+
return NextResponse.redirect(new URL('/success', req.url));
2020
}
2121

2222
return NextResponse.json(new URL('/', req.url));

0 commit comments

Comments
 (0)