Skip to content

Commit

Permalink
Update README.md to redirect to store url in payment-confirmed api
Browse files Browse the repository at this point in the history
  • Loading branch information
AweSomeK101 authored Feb 8, 2024
1 parent 347663c commit d26c388
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,10 @@ export async function POST(
}
}
const locale = request.nextUrl.locale ?? "en";
const computedUrl = `${urlSplit[0]}//${base}${locale ? "/" + locale : ""}${
redirectPath ?? redirectErrorPath
}`;
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || `${urlSplit[0]}//${base}`
const computedUrl = `${baseUrl}${locale ? "/" + locale : ""}${
redirectPath ?? redirectErrorPath
}`
console.log(
"computed URL:" + computedUrl + "\ncartId: " + cartId,
"\nmerchant_transaction_id: " + merchantTransactionId
Expand Down

0 comments on commit d26c388

Please sign in to comment.