BuzapayConfig class
Configuration for the Buzapay SDK
Constructors
- BuzapayConfig({required String merchantId, BuzapayEnvironment environment = BuzapayEnvironment.sandbox, Duration timeout = const Duration(seconds: 30), bool enableLogging = false, bool verboseLogging = false, String? baseUrl})
-
Creates a new BuzapayConfig
const
Properties
- baseUrl → String
-
Get the base URL based on environment
no setter
- enableLogging → bool
-
Enable debug logging
final
- environment → BuzapayEnvironment
-
SDK environment (sandbox or production)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- merchantId → String
-
Your Buzapay merchant ID
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
HTTP request timeout
final
- verboseLogging → bool
-
Enable verbose HTTP request/response logging
final
Methods
-
copyWith(
{String? merchantId, BuzapayEnvironment? environment, Duration? timeout, bool? enableLogging, bool? verboseLogging, String? baseUrl}) → BuzapayConfig - Create a copy with modified values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited