utils/checkout_payment_method_visibility library
Classes
- CheckoutPaymentMethodType
-
available_methods[].typevalues from checkout customization.
Enums
- CheckoutPaymentMethodKind
- Parsed row kind for payment pickers (options sheet, failed-payment retry, etc.).
Constants
-
checkoutPaymentMethodFallbackTypeOrder
→ const List<
String> - Default order when customization is not loaded yet (legacy sheet ordering).
Functions
-
checkoutPaymentMethodKindFromType(
String apiType) → CheckoutPaymentMethodKind -
Maps API
typeto CheckoutPaymentMethodKind. -
checkoutPaymentMethodVisible(
String apiType, {bool whenNoCustomizationData = true}) → bool -
Whether a method should appear, using
PayorcSdk.instance.checkoutCustomization. -
orderedMethodsForAlternatePaymentPicker(
) → List< AvailablePaymentMethod> - Methods to list in payment-option / retry flows.
-
sortedVisibleCheckoutMethods(
) → List< AvailablePaymentMethod> -
Entries with
show != 0fromPayorcSdk.instance.checkoutCustomization, sorted by AvailablePaymentMethod.sequence.