Skip to main content

Interface: CartPaymethodsProps

Defined in: components/CartPaymethods.tsx:17

Properties

cart

cart: Cart

Defined in: components/CartPaymethods.tsx:19

Shopping cart object from which the payment methods will be displayed


currency?

optional currency?: string

Defined in: components/CartPaymethods.tsx:40

Currency symbol for prices. Defaults to '€'.


formatPrice?

optional formatPrice?: (price) => string

Defined in: components/CartPaymethods.tsx:37

Custom price formatting function

Parameters

price

number

Returns

string


labels?

optional labels?: Record<string, string>

Defined in: components/CartPaymethods.tsx:43

Labels for the component


onPaymethodSelect?

optional onPaymethodSelect?: (paymethod) => void

Defined in: components/CartPaymethods.tsx:34

Action when a payment method is selected

Parameters

paymethod

CartPaymethod

Returns

void


paymentsContainerClass?

optional paymentsContainerClass?: string

Defined in: components/CartPaymethods.tsx:25

The CSS class for the payment methods container


showOnAccountForGuests?

optional showOnAccountForGuests?: boolean

Defined in: components/CartPaymethods.tsx:28

Display the on account payment method for anonymous users


optional showPaymethodLogo?: boolean

Defined in: components/CartPaymethods.tsx:31

Display the payment method logo (default: true). Falls back to the name when no logo is set.


user?

optional user?: Contact | Customer | null

Defined in: components/CartPaymethods.tsx:22

Authenticated user — used for cart creation / lookup. Resolved from <PropellerProvider> when not passed explicitly.