Пример #1
0
        public SwedbankLogin(BankType bank)
        {
            _selectedBank = BankTypeDefinition.Banks[bank];

            _requester = new SwedbankRequester(GenerateAuthKey(_selectedBank), GenerateDsid(), _selectedBank.UserAgent);
        }
Пример #2
0
 /// <summary>
 /// Generate authorization key
 /// </summary>
 /// <returns>Auth key</returns>
 private string GenerateAuthKey(AppData bank)
 {
     return(Convert.ToBase64String(Encoding.UTF8.GetBytes(bank.AppId + ":" + Guid.NewGuid().ToString().ToUpper())));;
 }
Пример #3
0
 public Swedbank(AppData selectedBank, SwedbankRequester requester)
 {
     _selectedBank = selectedBank;
     _requester    = requester;
 }