MidtransConfig constructor

MidtransConfig(
  1. {required String clientKey,
  2. required String merchantBaseUrl,
  3. String language = 'id',
  4. ColorTheme? colorTheme,
  5. bool enableLog = true}
)

Constructs a MidtransConfig instance.

clientKey The client key obtained from Midtrans.

merchantBaseUrl The base URL of the merchant's server.

language The language code used for localization (default is 'id').

colorTheme The color theme for customizing the payment UI.

enableLog A flag indicating whether logging is enabled (default is true).

Implementation

MidtransConfig({
  required this.clientKey,
  required this.merchantBaseUrl,
  this.language = 'id',
  this.colorTheme,
  this.enableLog = true,
});