Skip to content

Commit

Permalink
Fixed the private key check in CheckRequired
Browse files Browse the repository at this point in the history
  • Loading branch information
Strafe153 committed Apr 7, 2024
1 parent 6496e3f commit 218b0a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LiqPaySDK/LiqPay.SDK/LiqPayClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<LiqPayResponse> RequestAsync(string path, LiqPayRequest requestParams)
Expand Down

0 comments on commit 218b0a0

Please sign in to comment.