utils/checkout_payment_method_visibility library

Classes

CheckoutPaymentMethodType
available_methods[].type values 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 type to 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 != 0 from PayorcSdk.instance.checkoutCustomization, sorted by AvailablePaymentMethod.sequence.