PaymentGateway class abstract

Contract that all payment gateways must implement.

A PaymentGateway is responsible for opening a checkout flow (for example, a WebView with the provider’s payment page), and resolving to a PaymentResult indicating success or failure.

Implementers

Constructors

PaymentGateway.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The human-readable name of this gateway (e.g., "Paystack", "Mollie").
no setter
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
pay({required BuildContext context, required int amountSmallestUnit, required String email, String currency = 'NGN', String? reference}) Future<PaymentResult>
Starts a payment flow and returns a PaymentResult.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited