CheckoutConfig class
Configuration for the checkout UI behavior.
Constructors
-
CheckoutConfig({required CheckoutType sheetType, required bool isEnabled, Map<
Jurisdiction, JurisdictionCheckoutConfig> jurisdictions = const {}, List<String> ? paymentMethods}) -
const
-
CheckoutConfig.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isApplePayOnly → bool
-
True when the merchant has restricted payment to Apple Pay only.
Drives native availability checks and banner CTA swap.
no setter
- isEnabled → bool
-
final
-
jurisdictions
→ Map<
Jurisdiction, JurisdictionCheckoutConfig> -
final
-
paymentMethods
→ List<
String> ? -
Allowed payment methods for this merchant.
null(or missing on the wire) means no restriction.["apple_pay"]restricts the SDK to Apple-Pay-only behavior. Other values are accepted for forward compatibility but trigger no current behavior change.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sheetType → CheckoutType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override