sablepay_flutter library

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)

Exceptions / Errors

ApiException