getMerchantInfo static method

Future<Map<String, dynamic>?> getMerchantInfo()

Get merchant information

Implementation

static Future<Map<String, dynamic>?> getMerchantInfo() async {
  try {
    final merchantInfoJson = await _storage.read(key: _merchantInfoKey);
    if (merchantInfoJson == null) return null;

    return jsonDecode(merchantInfoJson) as Map<String, dynamic>;
  } catch (e) {
    return null;
  }
}