public async Task <string> GenerateAsync() { var request = new PagarMeRequest(_service, "GET", "/transactions/card_hash_key"); request.UseEncryptionKey = true; var response = await request.ExecuteAsync(); var key = JsonHelper.Deserialize <CardHashKey>(_service, response.Body); return(Encrypt(key)); }
public async Task<string> GenerateAsync() { var request = new PagarMeRequest(_service, "GET", "/transactions/card_hash_key"); request.UseEncryptionKey = true; var response = await request.ExecuteAsync(); var key = JsonHelper.Deserialize<CardHashKey>(_service, response.Body); return Encrypt(key); }