updateSuccessTransaction static method
Future<void>
updateSuccessTransaction(
{ - required String transaction,
- required Map<String, dynamic>? successResponse,
})
Implementation
static Future<void> updateSuccessTransaction({
required String transaction,
required Map<String, dynamic>? successResponse,
}) async {
_firestore.collection(collectionName).doc(transaction).update(
{
'successResponse': successResponse?['response'] != null
? jsonDecode(successResponse!['response'])
: 'No response',
'status': 'success',
'successTime': FieldValue.serverTimestamp(),
},
);
}