Przejdź do głównej zawartości

Interface: PaymentInstrumentSectionProps

Properties​

ariaLabel?​

optional ariaLabel?: string

Optional ARIA label for the radiogroup. Defaults to nothing (caller's responsibility — the section is typically nested in a wider label structure).


iconClassName?​

optional iconClassName?: string

Optional class for the brand image inside tiles — passed as iconClassName.


labelClassName?​

optional labelClassName?: string

Optional class for the label span inside tiles — passed as labelClassName.


method​

method: PaymentInstrumentSectionMethod

Payment method with an instruments[] list (null/empty → the component returns null).


onSelectInstrument​

onSelectInstrument: (instrumentCode) => void

Callback fired when the buyer selects an instrument. The parent persists the state + calls cartSelectPaymentMethod.

Parameters​

instrumentCode​

string

Returns​

void


sectionClassName?​

optional sectionClassName?: string

Optional class for the outer section element — typically grid/flex layout.


selectedInstrumentCode?​

optional selectedInstrumentCode?: string

Currently selected instrument code — controlled by parent. Undefined when the buyer has not picked one yet.


tileClassName?​

optional tileClassName?: string

Optional class for each <PaymentInstrumentTile> — passed as className.