Merged in feat/sw-3642-inject-sas-eb-payment (pull request #3243)

feat(SW-3642): Enable SAS EB payments

* Wip add SAS eb payment

* Add validate payment call

* Check booking status payment method to determine validation

* Clean up getPaymentData

* Fix PartnerPoints casing

* Add comment for validatePartnerPayment error handling

* Remove comment


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-12-11 13:23:12 +00:00
parent eb90c382b8
commit 7faa9933a2
19 changed files with 489 additions and 110 deletions

View File

@@ -37,7 +37,7 @@ export default async function SelectHotelPage(props: PageArgs<LangParams>) {
searchParams={searchParams}
config={bookingFlowConfig}
topSlot={
bookingFlowConfig.redemptionEnabled ? (
bookingFlowConfig.redemptionType !== "disabled" ? (
<Alert
heading={intl.formatMessage({
id: "selectHotel.earnEuroBonusPointsAlert.heading",

View File

@@ -52,7 +52,7 @@ export default async function Home(props: PageArgs<LangParams>) {
config={bookingFlowConfig}
/>
</section>
{bookingFlowConfig.redemptionEnabled && (
{bookingFlowConfig.redemptionType !== "disabled" && (
<section className={styles.infoBoxes}>
<InfoBox
heading={intl.formatMessage({

View File

@@ -13,7 +13,7 @@ import type { LangRoute } from "@scandic-hotels/common/constants/routes/langRout
export const bookingFlowConfig: BookingFlowConfig = {
bookingCodeEnabled: false,
savedCreditCardsEnabled: false,
redemptionEnabled: env.REDEMPTION_ENABLED === true,
redemptionType: env.REDEMPTION_ENABLED === true ? "partner" : "disabled",
enterDetailsMembershipIdInputLocation: "join-card",
variant: "partner-sas",
routes: {