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:
@@ -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",
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user