updateFailureTransaction static method

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

Implementation

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