Core API
MindPaystack
initialize(PaystackConfig config) → Future<void>
: Initialize the SDK (call once)instance
: Access the singletontransaction → TransactionService
Availablecharge → ChargeService
Coming SoonpaymentChannel → PaymentChannelService
Coming Soon
PaystackConfig
PaystackConfig({
required String publicKey,
required String secretKey,
Environment environment = Environment.test,
LogLevel logLevel = LogLevel.info,
RetryPolicy retryPolicy = const RetryPolicy(),
String currency = 'NGN',
String locale = 'en',
Duration? timeout,
})
Also: fromEnvironment()
reads compile‑time env values.
HttpClient behavior
- Base URL:
https://api.paystack.co
- Interceptors: request enricher, auth, retry, error, logging
Last updated on