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

@@ -79,7 +79,7 @@ export default function RewardNight() {
}
}, [resetOnMultiroomError, ref])
if (!config.redemptionEnabled) return null
if (config.redemptionType === "disabled") return null
return (
<div ref={ref} onBlur={(e) => closeOnBlur(e.nativeEvent)}>

View File

@@ -41,7 +41,7 @@ export default function FormContent({
const {
formState: { errors, isDirty },
} = useFormContext<BookingWidgetSchema>()
const { bookingCodeEnabled, redemptionEnabled } = useBookingFlowConfig()
const { bookingCodeEnabled, redemptionType } = useBookingFlowConfig()
const searchParams = useSearchParams()
const focusWidget = searchParams.get(FOCUS_WIDGET) === "true"
useEffect(() => {
@@ -126,7 +126,7 @@ export default function FormContent({
)}
style={{
// TODO: Remove this when redemption is enabled for partner-sas
display: redemptionEnabled ? undefined : "none",
display: redemptionType !== "disabled" ? undefined : "none",
}}
>
<Voucher />