lokotro_pay library
Classes
- LokotroBank
- Bank model for bank transfer
- LokotroBankAccount
- Bank account model for bank transfer
- LokotroBankCurrency
- Bank currency model
- LokotroBankEntity
- Entity (city) model for bank transfer
- LokotroCircularImageWidget
- Enhanced circular image widget
- LokotroCommonService
- Enhanced common service for Lokotro Pay with RxDart integration and modern state management
- LokotroCurrency
- Currency model for enhanced display
- LokotroErrorScreen
- Enhanced error screen with glassmorphism design
- LokotroEWalletPaymentResponse
- E-Wallet payment response models
- LokotroEWalletResendResponse
- LokotroEWalletSelectionType
- E-wallet selection type for enhanced UI
- LokotroEWalletService
- E-Wallet payment service for Lokotro Pay
- LokotroEWalletSubmitResponse
- LokotroEWalletTransactionResponse
- LokotroEWalletVerifyResponse
- LokotroFullContentSpin
- Enhanced full content spinner with glassmorphism overlay
- LokotroFullScreenSpinner
- True full screen spinner overlay - minimal centered circle Covers entire screen with blur and shows a simple spinner
- LokotroHttpClient
- Enhanced HTTP client for Lokotro Pay with modern error handling and logging.
-
LokotroHttpResponse<
T> - Enhanced HTTP response wrapper
- LokotroLinearProgressIndicator
- Enhanced linear progress indicator
- LokotroLoadingCard
- Enhanced loading card with glassmorphism design
- LokotroLoadingSpinner
- Enhanced loading spinner with glassmorphism effect
- LokotroLocalizationService
- Service for managing localization in Lokotro Pay plugin
- LokotroMerchantInfo
- Merchant information for payment collection
- LokotroOtpResendRequest
- OTP resend request
- LokotroOtpResendResponse
- OTP resend response
- LokotroOtpVerifyRequest
- OTP verification request
- LokotroOtpVerifyResponse
- OTP verification response
- LokotroPay
- Entry point for the Lokotro Pay SDK.
- LokotroPayCheckout
- Main Lokotro Pay Checkout widget with clean, theme-based design
- LokotroPayColors
- Color scheme for Lokotro Pay - matching Lokotroo App design
- LokotroPayConfig
- Immutable, process-wide configuration for the Lokotro Pay SDK.
- LokotroPayConfigs
- Per-checkout configuration for the LokotroPayCheckout widget.
- LokotroPayEnv
- Static facade exposing the active SDK configuration to internal call sites (HTTP client, interceptor, services). Reads from LokotroPay.instance — no environment files, no runtime mutation.
- LokotroPayError
- Error response model
- LokotroPayLocalizations
-
Callers can lookup localized strings with an instance of LokotroPayLocalizations
returned by
LokotroPayLocalizations.of(context). - LokotroPayLog
- Redaction-aware structured logger for the Lokotro Pay SDK.
- LokotroPaymentBody
- Payment body for Lokotro Pay - Updated to match new Gateway API (All-in-one request)
- LokotroPaymentFormData
- Payment form data model
- LokotroPaymentFormScreen
- Clean payment form screen with theme-based design
- LokotroPaymentInfo
- Payment information model
- LokotroPaymentMethod
- Payment method model
- LokotroPaymentMethodIcon
- Enhanced payment method icon widget
- LokotroPaymentMethodListItem
- Enhanced payment method models for Lokotro Pay Payment method list item for UI display
- LokotroPaymentMethodSelectionScreen
- Clean payment method selection screen following the same design pattern as form screens
- LokotroPaymentRequest
- Payment request models that match the new Lokotro Gateway API
- LokotroPaymentResponse
- Payment creation response from the API
- LokotroPaymentService
- Main payment service that follows the new Lokotro Gateway API flow
- LokotroPaymentSubmitRequest
- Payment submission request
- LokotroPaymentSubmitResponse
- Payment submission response
- LokotroPayOnError
- Error callback for failed payments
- LokotroPayOnResponse
- Response callback for successful payments
- LokotroPayRequestResponse
- Request response wrapper model
- LokotroPayResponse
- Main payment response model
- LokotroPayResponseMessage
- Response message model for UI feedback
- LokotroPayThemeConfig
- Theme configuration for Lokotro Pay.
- LokotroPayUtils
- Enhanced utility functions for Lokotro Pay with modern design helpers
- LokotroPdfService
- Enhanced PDF service for generating payment receipts with Lokotro branding
- LokotroPrimaryButton
- Enhanced primary button with Lokotro glassmorphism design and animations
- LokotroPrinterSettingsDialog
- Dialog for configuring printer settings
- LokotroPrinterSettingsService
- Service for managing printer settings with secure storage
- LokotroProgressIndicator
- Enhanced progress indicator with Lokotro glassmorphism design
- LokotroPulseAnimation
- Enhanced pulse animation widget
- LokotroSecondaryButton
- Enhanced secondary button with outline design
- LokotroSkeletonLoader
- Enhanced skeleton loader for content placeholders
- LokotroSquareImageWidget
- Enhanced square image widget with glassmorphism design
- LokotroStepProgressIndicator
- Enhanced step progress indicator
- LokotroSuccessScreen
- Enhanced success screen with glassmorphism design and PDF/printing capabilities
- LokotroTransactionDetails
- Transaction details response from the API
Enums
- HapticFeedbackType
- Haptic feedback types
- LokotroPayApiResponseCode
- API response status codes
- LokotroPayChannel
- Payment channel types supported by Lokotro Pay
- LokotroPayEnvironment
- Backend environment the SDK should target.
- LokotroPayFillingInfo
- Form filling information status
- LokotroPayLanguage
- Supported languages for Lokotro Pay plugin
- LokotroPaymentStatus
- Payment status enumeration
- LokotroPayResultScreen
- API result processing screen types
- Local screen navigation states for enhanced UI flow
- LokotroPayTheme
- Theme options for Lokotro Pay plugin
- LokotroPrinterType
- Printer types supported by Lokotro Pay
Extensions
Functions
-
lookupLokotroPayLocalizations(
Locale locale) → LokotroPayLocalizations -
parseApiResponseCode(
String? code) → LokotroPayApiResponseCode - Enhanced response models for Lokotro Pay with modern design patterns Helper functions for enum parsing Public helper to parse API response codes from strings
-
parsePaymentStatus(
String? status) → LokotroPaymentStatus - Public helper to parse payment status from strings
Exceptions / Errors
- LokotroPayException
- E-Wallet payment exception
- LokotroPaymentException
- Payment exception