This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NextResponse } from "next/server"; | |
export const POST = async (request) => { | |
const url = new URL(request.url); | |
const searchParams = new URLSearchParams(url.search); | |
const transactionId = searchParams.get("transactionId"); // Retrieves the value of the 'transactionId' parameter | |
console.log(transactionId); | |
return NextResponse.json({ transactionId: transactionId }); |