PaymentMethodEligibilityChecker
The PaymentMethodEligibilityChecker class is used to check whether an order qualifies for a given PaymentMethod.
Example
- Extends:
ConfigurableOperationDef<T>
constructor
method
(config: PaymentMethodEligibilityCheckerConfig<T>) => PaymentMethodEligibilityCheckerConfiguration passed into the constructor of a PaymentMethodEligibilityChecker to configure its behavior.
- Extends:
ConfigurableOperationDefOptions<T>
check
property
CheckPaymentMethodEligibilityCheckerFn<T>A function which implements logic to determine whether a given Order is eligible for
a particular payment method. If the function resolves to false or a string, the check is
considered to have failed. A string result can be used to provide information about the
reason for ineligibility, if desired.
Was this chapter helpful?