PaygateValidator class

Validation utilities for PayGate inputs

Constructors

PaygateValidator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

isValidAmount(double amount) bool
Validates transaction amount
isValidApiKey(String apiKey) bool
Validates API key format
isValidCallbackUrl(String? url) bool
Validates callback URL
isValidIdentifier(String identifier) bool
Validates transaction identifier
isValidPhoneNumber(String phoneNumber, {String? countryCode = '228'}) bool
Validates phone number format for supported providers
validatePhoneNumber(String phoneNumber) → void
Throws validation exception if phone number is invalid