Last active
August 22, 2023 14:16
-
-
Save hanif365/30fa38b97f1f92191c8dfa96f1e6c3c3 to your computer and use it in GitHub Desktop.
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 }); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment