Merged in fix/STAY-67-redirect-to-webview-after-gla (pull request #2795)

fix(STAY-67): redirect to webview after guarantee on my stay

* fix(STAY-67): redirect to webview after guarantee on my stay

* fix(STAY-67): add callback page for guarantee on webview


Approved-by: Linus Flood
This commit is contained in:
Bianca Widstam
2025-09-15 07:18:58 +00:00
parent 98816b27ce
commit 800948bb94
6 changed files with 173 additions and 81 deletions

View File

@@ -8,6 +8,10 @@ export function hotelreservation(lang: Lang) {
return `/${lang}/hotelreservation`
}
export function webviewHotelreservation(lang: Lang) {
return `/${lang}/webview/hotelreservation`
}
export function bookingConfirmation(lang: Lang) {
return `${hotelreservation(lang)}/booking-confirmation`
}
@@ -41,6 +45,8 @@ export function alternativeHotelsMap(lang: Lang) {
return `${hotelreservation(lang)}/alternative-hotels/map`
}
export function guaranteeCallback(lang: Lang) {
return `${hotelreservation(lang)}/gla-payment-callback`
export function guaranteeCallback(lang: Lang, isWebview: boolean) {
return isWebview
? `${webviewHotelreservation(lang)}/gla-payment-callback`
: `${hotelreservation(lang)}/gla-payment-callback`
}