Merged in feat/SW-659-payment-send-query-params (pull request #727)

feat(SW-659): Receive query params from Planet callbacks

* feat(SW-659): read confirmation number from url and update callback url if dev

* fix(SW-659): moved callback url into env variable


Approved-by: Simon.Emanuelsson
This commit is contained in:
Tobias Johansson
2024-10-23 11:51:44 +00:00
parent d2817c5f8c
commit 025c5c8291
5 changed files with 44 additions and 23 deletions

View File

@@ -22,9 +22,11 @@ import type { LangParams, PageArgs } from "@/types/params"
export default async function BookingConfirmationPage({
params,
}: PageArgs<LangParams>) {
searchParams,
}: PageArgs<LangParams, { confirmationNumber: string }>) {
const confirmationNumber = searchParams.confirmationNumber
const booking = await serverClient().booking.confirmation({
confirmationNumber: "991697377",
confirmationNumber,
})
if (!booking) {