createProcessingTransaction static method
Implementation
static Future<void> 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,
}) async {
_firestore.collection(collectionName).doc(transaction).set(
{
'status': 'processing',
'gateway': gateway,
'platform': Platform.isAndroid ? 'android' : 'ios',
'amount': amount,
'apiKey': apiKey,
'merchantId': merchantId,
'salt': salt,
'appName': appName,
'description': description,
'user': userProfile.toMap(),
'id': transaction,
'createdAt': FieldValue.serverTimestamp(),
'orderId': orderId,
},
);
}