SaveFirebase class

A class that handles saving payment transaction data to Firebase.

Constructors

SaveFirebase()

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

createFirebasePaymentID() String
Generates a new Firebase document ID for a payment transaction.
createProcessingTransaction({required num amount, required String apiKey, required String merchantId, required String salt, required String appName, required String description, required OmniwareUserProfile userProfile, required String transaction, required String orderId, required String platform}) Future<void>
Creates a new processing payment transaction record in Firebase.
updateFailureTransaction({required String transaction, required Map<String, dynamic>? failureResponse}) Future<void>
Updates the Firestore record with the failure response of a payment transaction.
updateSuccessTransaction({required String transaction, required Map<String, dynamic>? successResponse}) Future<void>
Updates the Firestore record with the success response of a payment transaction.

Constants

collectionName → const String
The name of the collection in Firestore where payment transactions are stored.
gateway → const String
The name of the payment gateway (Omniware) used for transactions.