Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { getSavedPaymentCardsSafely } from "../../../trpc/memoizedRequests/getSavedPaymentCardsSafely"
|
||||
import PaymentClient from "./PaymentClient"
|
||||
|
||||
import type { PaymentMethodEnum } from "@scandic-hotels/common/constants/paymentMethod"
|
||||
|
||||
type PaymentProps = {
|
||||
otherPaymentOptions: PaymentMethodEnum[]
|
||||
supportedCards: PaymentMethodEnum[]
|
||||
}
|
||||
|
||||
export default async function Payment({
|
||||
otherPaymentOptions,
|
||||
supportedCards,
|
||||
}: PaymentProps) {
|
||||
const savedCreditCards = await getSavedPaymentCardsSafely({
|
||||
supportedCards,
|
||||
})
|
||||
|
||||
return (
|
||||
<PaymentClient
|
||||
otherPaymentOptions={otherPaymentOptions}
|
||||
savedCreditCards={savedCreditCards}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user