MicropayConfig class
Configuration options for the Micropay client.
Constructors
- MicropayConfig({required String publicKey, String baseUrl = 'https://micropay.dev/v1', Duration timeout = const Duration(seconds: 30), bool debug = false})
Properties
- baseUrl → String
-
API base URL. Defaults to production.
final
- debug → bool
-
Enable debug logging.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTestMode → bool
-
Whether this is a test environment.
no setter
- publicKey → String
-
Your Micropay public key (pk_test_... or pk_live_...).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
Request timeout duration.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited