sablepay_flutter library
Classes
- ApiClient
- ApiKeyManager
- CreatePaymentRequest
- CreatePaymentResponse
- NetworkConfig
- PaymentConfig
- PaymentFlow
- PaymentFlowError
- PaymentFlowListener
- PaymentFlowOptions
- PaymentFlowState
- PaymentItem
- PaymentPoller
- PaymentResult
- PaymentStatus
- PaymentStatusResponse
- PollOptions
- PollResult
- QrCodeConfig
- QrCodeGenerator
- QrCodeWidget
- SablePay
- SablePayConfig
- SablePayLogger
- SdkVersion
Constants
- logger → const SablePayLogger
Functions
-
delay(
Duration duration) → Future< void> -
formatAmount(
double amount) → String -
formatAmountValue(
double amount) → String -
getLogLevel(
) → LogLevel -
isCompleted(
String status) → bool -
isExpired(
String status) → bool -
isFailed(
String status) → bool -
isNetworkError(
Object error) → bool -
isPending(
String status) → bool -
isTerminal(
String status) → bool -
retryWithExponentialBackoff<
T> (Future< T> fn(), {int maxRetries = NetworkConfig.maxRetries, Duration initialDelay = NetworkConfig.initialRetryDelay, double backoffMultiplier = NetworkConfig.retryBackoffMultiplier, Duration maxDelay = NetworkConfig.maxRetryDelay, bool shouldRetry(Object error)?}) → Future<T> -
setLogLevel(
LogLevel level) → void
Typedefs
- PollStatusCallback = void Function(PollResult result)