Skip to Content
DocumentationAPI ReferenceCore API

Core API

MindPaystack

  • initialize(PaystackConfig config) → Future<void>: Initialize the SDK (call once)
  • instance: Access the singleton
  • transaction → TransactionService Available
  • charge → ChargeService Coming Soon
  • paymentChannel → 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