updateSuccessTransaction static method

Future<void> updateSuccessTransaction({
  1. required String transaction,
})

Implementation

static Future<void> updateSuccessTransaction({
  required String transaction,
}) async {
  _firestore.collection('razorpayPaymentTransaction').doc(transaction).update(
    {
      'status': 'success',
      'successTime': FieldValue.serverTimestamp(),
    },
  );
}