diff --git a/LiqPaySDK/LiqPay.SDK/LiqPayClient.cs b/LiqPaySDK/LiqPay.SDK/LiqPayClient.cs index 627ff9b..a3e68e4 100644 --- a/LiqPaySDK/LiqPay.SDK/LiqPayClient.cs +++ b/LiqPaySDK/LiqPay.SDK/LiqPayClient.cs @@ -41,10 +41,14 @@ public LiqPayClient(string publicKey, string privateKey, WebProxy proxy) private void CheckRequired() { if (string.IsNullOrEmpty(_publicKey)) + { throw new ArgumentNullException("publicKey is empty"); + } - if (string.IsNullOrEmpty(_publicKey)) + if (string.IsNullOrEmpty(_privateKey)) + { throw new ArgumentNullException("privateKey is empty"); + } } public async Task RequestAsync(string path, LiqPayRequest requestParams)