fix: send totalPrice to create booking

This commit is contained in:
Christel Westerberg
2024-11-06 14:09:18 +01:00
parent f4f771ec70
commit 560fb25aee
6 changed files with 23 additions and 24 deletions

View File

@@ -96,6 +96,11 @@ export default async function StepPage({
id: "Select payment method",
})
const roomPrice =
user && roomAvailability.memberRate
? roomAvailability.memberRate?.localPrice.pricePerStay
: roomAvailability.publicRate!.localPrice.pricePerStay
return (
<section>
<HistoryStateManager />
@@ -136,6 +141,7 @@ export default async function StepPage({
label={mustBeGuaranteed ? guaranteeWithCard : selectPaymentMethod}
>
<Payment
roomPrice={roomPrice}
otherPaymentOptions={
hotelData.data.attributes.merchantInformationData
.alternatePaymentOptions