going to add confirm-transaction endpoint and cleanup with .gitignore

This commit is contained in:
2025-08-29 15:57:36 +01:00
parent a1efce0b2a
commit 8e268c5e60
175 changed files with 63 additions and 52896 deletions
+16 -2
View File
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
@@ -242,9 +243,22 @@ namespace Creditcall.ChipDna.Client
Response response = chipDnaClientLib.StartTransaction(parameters);
string errors;
if (response.GetValue(ParameterKeys.Errors, out errors))
if (response.GetValue(ParameterKeys.Errors, out errors) && !string.IsNullOrEmpty(errors))
{
var result = new Dictionary<string, string>
{
{ "ERROR", errors },
{ "REFERENCE", reference },
{ "TRANSACTION_RESULT", "ERROR" }
};
if (TransactionCompletionSource != null && !TransactionCompletionSource.Task.IsCompleted)
{
TransactionCompletionSource.TrySetResult(result);
}
Console.WriteLine(ErrorsString("StartTransaction Errors", errors));
return;
}
}
@@ -621,7 +635,7 @@ namespace Creditcall.ChipDna.Client
}
}
private void PerformConfirmTransaction()
public void PerformConfirmTransaction()
{
var reference = GetReference(true, "");
var amount = GetAmount(false);