Skip to main content

Interface: CartPaymethodsProps

Defined in: components/CartPaymethods.tsx:18

Properties​

cart​

cart: Cart

Defined in: components/CartPaymethods.tsx:27

Shopping cart object from which the payment methods will be displayed


currency?​

optional currency?: string

Defined in: components/CartPaymethods.tsx:48

Currency symbol for prices. Defaults to '€'.


formatPrice?​

optional formatPrice?: (price) => string

Defined in: components/CartPaymethods.tsx:45

Custom price formatting function

Parameters​

price​

number

Returns​

string


labels?​

optional labels?: Record<string, string>

Defined in: components/CartPaymethods.tsx:51

Labels for the component


language?​

optional language?: string

Defined in: components/CartPaymethods.tsx:24

Storefront language ('EN', 'NL', …). Decides the number format prices are rendered in — without it they fall back to Dutch separators regardless of the language the shopper is reading. Resolved from <PropellerProvider> when omitted.


onPaymethodSelect?​

optional onPaymethodSelect?: (paymethod) => void

Defined in: components/CartPaymethods.tsx:42

Action when a payment method is selected

Parameters​

paymethod​

CartPaymethod

Returns​

void


paymentsContainerClass?​

optional paymentsContainerClass?: string

Defined in: components/CartPaymethods.tsx:33

The CSS class for the payment methods container


paymethodLabels?​

optional paymethodLabels?: Record&lt;string, string>

Defined in: components/CartPaymethods.tsx:60

Localized display names for payment methods, keyed by the method code (lower-cased, e.g. { pickup: 'Bij afhalen', on_account: 'Op rekening' }). The backend method.name is often an un-localized English string (e.g. "On pickup"), so this map lets the host override it per locale. Lookup order: paymethodLabels[code] → method.name → method.code.


showOnAccountForGuests?​

optional showOnAccountForGuests?: boolean

Defined in: components/CartPaymethods.tsx:36

Display the on account payment method for anonymous users


optional showPaymethodLogo?: boolean

Defined in: components/CartPaymethods.tsx:39

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:30

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