SplitConfigProvider class

Provides configuration settings for the split payments feature.

Fetches from Enterprise Config (LaunchDarkly) and Business Settings to determine whether split payments are enabled and which payment methods should be excluded from the Pay Page when in a split flow.

isSplitPaymentsEnabled is intended to be checked by the host app's DI registration logic before registering LittlefishSplitPaymentGateway. If the flag is false, the gateway should not be registered, and split payments will not appear as an available payment type.

Constructors

SplitConfigProvider()

Properties

hashCode int
The hash code for this object.
no setterinherited
isAdminPinRequiredForReopen bool
Whether an admin PIN is required to re-open a closed (fully_paid) split order for additional payment legs.
no setter
isSplitEquallyEnabled bool
Whether the "Split Equally" chip is enabled on ReconciliationScreen. Reads the system-split-equally-enabled enterprise config flag. Defaults to true — the feature is on unless explicitly disabled.
no setter
isSplitPaymentsEnabled bool
Whether the split payments feature is enabled via enterprise config.
no setter
refundPaymentTypeNames List<String>
Refund payment type names from enterprise config (raw, no enabled check).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splitFlowExclusions List<String>
Payment method exclusions to pass to Pay Page v2 when in split flow. Always excludes 'split' to prevent nested split payments.
no setter
surplusBehavior SurplusBehavior
Determines how the split flow handles surplus payments when an explicit (order-level) tip is present.
no setter

Methods

allowedRefundTypeNames() List<String>
Returns the payment type names that are both listed in refundTypes AND marked enabled: true in types[] of the config_settings_payment_types enterprise config flag.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited