This commit is contained in:
mmrbnjd
2024-10-27 21:21:53 +03:30
parent e748993044
commit 379f3df414
7 changed files with 27 additions and 16 deletions

View File

@@ -70,11 +70,12 @@ namespace Back.Services
if (!string.IsNullOrEmpty(resquth.UniqueMemory) && !string.IsNullOrEmpty(resquth.PrivateKey))
{
// "https://sandboxrc.tax.gov.ir/req/api/"
_UniqueMemory = resquth.UniqueMemory;
_PrivateKey = resquth.PrivateKey;
TaxApiService.Instance.Init(_UniqueMemory,
new SignatoryConfig(_PrivateKey, null),
new NormalProperties(ClientType.SELF_TSP), /*"https://tp.tax.gov.ir/req/api/"*/ "https://sandboxrc.tax.gov.ir/req/api/");
new NormalProperties(ClientType.SELF_TSP), "https://tp.tax.gov.ir/req/api/");
await TaxApiService.Instance.TaxApis.GetServerInformationAsync();
}
#endregion