SmartCheckout class
Main public interface for the Bemobi Smart Checkout SDK.
This class provides static methods and constants to interact with the smart checkout system, including configuration, callbacks, ui presentation, and wallet availability checks. Use this class to integrate and control the smart checkout experience in your flutter application.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Properties
- colorMode → SmartCheckoutColorModeConstants
-
Provides access to the available smart checkout color mode constants.
final
- environment → SmartCheckoutEnvironmentConstants
-
Provides access to the available smart checkout environment constants.
final
- style → SmartCheckoutStyleConstants
-
Provides access to the available smart checkout style constants.
final
Static Methods
-
callbacks(
{dynamic onSuccess(Map< String, dynamic> result)?, dynamic onError(Map<String, dynamic> result)?, VoidCallback? onClose}) → SmartCheckoutCallbacks - Creates a SmartCheckoutCallbacks object to handle checkout events.
-
config(
{required SmartCheckoutEnvironment environment, String? sessionCode, String? partnerKey, Uri? deepLink, double? initialHeightFraction, SmartCheckoutStyle? style, SmartCheckoutColorMode? colorMode}) → SmartCheckoutConfig - Creates a SmartCheckoutConfig object to configure the checkout session.
-
parseColorModeFrom(
String value) → SmartCheckoutColorMode - Converts a String into a SmartCheckoutColorMode.
-
parseEnvironmentFrom(
String value) → SmartCheckoutEnvironment - Converts a String into a SmartCheckoutEnvironment.
-
parseStyleFrom(
String value) → SmartCheckoutStyle - Converts a String into a SmartCheckoutStyle.
-
setCustomActionHandler(
dynamic handler(Map< String, dynamic> )) → void - Registers a handler for custom actions triggered during the checkout process.
-
showBottomSheet(
{required BuildContext context, required SmartCheckoutConfig config, SmartCheckoutCallbacks callbacks = const SmartCheckoutCallbacks()}) → Future< void> - Presents the smart checkout ui as a modal bottom sheet.