PaystackPaymentProvider class
Paystack payment provider implementation
- Inheritance
-
- Object
- BasePaymentProvider
- PaystackPaymentProvider
Constructors
Properties
-
cancelUrlPatterns
→ List<
String> -
Get provider-specific cancel URL patterns
no setteroverride
- config → PaymentConfig
-
Payment configuration
finalinherited
-
failureUrlPatterns
→ List<
String> -
Get provider-specific failure URL patterns
no setteroverride
- 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 setteroverride
Methods
-
createPaymentUrl(
PaymentRequest request) → Future< PaymentUrlResponse> -
Create a payment session and return the payment URL
override
-
handleResponse(
Response response) → Map< String, dynamic> -
Handle HTTP response and check for errors
inherited
-
makeBackendRequest(
{required String endpoint, required String method, Map< String, dynamic> ? body, Map<String, String> ? headers}) → Future<Response> -
Make HTTP request to backend
inherited
-
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
override
-
toString(
) → String -
A string representation of this object.
inherited
-
verifyPayment(
String transactionId) → Future< PaymentResponse> -
Verify payment status with the backend
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited