Skip to content

Commit

Permalink
Merge pull request #17 from Strafe153/strafe153/bug/check_required
Browse files Browse the repository at this point in the history
Fixed the private key check in CheckRequired
  • Loading branch information
JTOne123 authored Apr 8, 2024
2 parents 6496e3f + 218b0a0 commit 6156af3
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 6156af3

Please sign in to comment.