public static string GetCardToken(object obj) { try { var objEncoded = CryptoMethods.EncryptString(JsonConvert.SerializeObject(obj)); return(objEncoded); } catch (Exception e) { return(e.Message); } }