resetTransactionState method

void resetTransactionState()

Reset transaction state for retry functionality

Implementation

void resetTransactionState() {
  setLoading(false);
  _paymentMessageController.add(null);

  // Clear transaction-specific data but keep payment info
  _currentTransactionId = null;
  _otpSentTo = null;
  _transactionDetails = null;
  _successResponse = null;
  _personalInfo = null;
  _availablePaymentMethods = null;
  _paymentMethodFees = null;

  if (LokotroPayEnv.debugMode) {
    debugPrint('[Lokotro Common Service] Transaction state reset for retry');
  }
}