BasePaymentProvider class abstract
Base class for payment provider implementations
Constructors
- BasePaymentProvider.new(PaymentConfig config)
Properties
-
cancelUrlPatterns
→ List<
String> -
Get provider-specific cancel URL patterns
no setter
- config → PaymentConfig
-
Payment configuration
final
-
failureUrlPatterns
→ List<
String> -
Get provider-specific failure URL patterns
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
successUrlPatterns
→ List<
String> -
Get provider-specific success URL patterns
no setter
Methods
-
createPaymentUrl(
PaymentRequest request) → Future< PaymentUrlResponse> - Create a payment session and return the payment URL
-
handleResponse(
Response response) → Map< String, dynamic> - Handle HTTP response and check for errors
-
makeBackendRequest(
{required String endpoint, required String method, Map< String, dynamic> ? body, Map<String, String> ? headers}) → Future<Response> - Make HTTP request to backend
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parsePaymentResponse(
Map< String, dynamic> response) → PaymentResponse - Parse provider-specific response into standardized PaymentResponse
-
toString(
) → String -
A string representation of this object.
inherited
-
verifyPayment(
String transactionId) → Future< PaymentResponse> - Verify payment status with the backend
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited