MastercardConfig class

Mastercard Gateway Configuration

Constructors

MastercardConfig({required String merchantId, required String apiUsername, required String apiPassword, required String gatewayUrl, bool isTestMode = true, String version = '83', String currency = 'USD', required String merchantName, required String merchantUrl})
const
MastercardConfig.production({required String merchantId, required String apiUsername, required String apiPassword, required String merchantName, required String merchantUrl, String currency = 'USD'})
Production environment configuration
factory
MastercardConfig.test({required String merchantId, required String apiUsername, required String apiPassword, required String merchantName, required String merchantUrl, String currency = 'USD'})
Test environment configuration
factory

Properties

apiBaseUrl String
Get API base URL
no setter
apiPassword String
final
apiUsername String
final
authenticationUrl String
Get authentication endpoint
no setter
currency String
final
gatewayUrl String
final
hashCode int
The hash code for this object.
no setterinherited
isTestMode bool
final
isValid bool
Validate configuration
no setter
merchantId String
final
merchantName String
final
merchantUrl String
final
paymentUrl String
Get payment endpoint
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
final

Methods

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