PaymentResult class
A Flutter package for handling payment webviews with custom callbacks.
This package provides a simple way to integrate payment webviews into your Flutter app. It handles the webview lifecycle and provides callbacks for payment completion.
Example usage:
PaymentWebView(
url: 'https://your-payment-url.com',
onPaymentComplete: (result) {
print('Payment status: ${result.status}');
print('Transaction ID: ${result.transactionId}');
print('Amount: ${result.amount}');
},
)
The result of a payment transaction
Constructors
- PaymentResult({required String status, String? transactionId, double? amount})
Properties
- amount → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
final
- transactionId → 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited