Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions TransactionProcessing.MerchantPos/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
EnvironmentName = envName
});

// Load hosting.json so values such as "urls" or Kestrel endpoints are applied
builder.Configuration.AddJsonFile("hosting.json", optional: true, reloadOnChange: true);

// Explicit configuration ordering: appsettings.json, appsettings.{Environment}.json, environment vars, command line
builder.Configuration
.SetBasePath(builder.Environment.ContentRootPath)
Expand Down
2 changes: 0 additions & 2 deletions TransactionProcessing.MerchantPos/Runtime/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ public async Task<List<Product>> GetProductList(MerchantConfig cfg,

List<ContractResponseX>? responseData = JsonConvert.DeserializeObject<List<ContractResponseX>>(content.Data);

responseData = responseData.Where(r => r.ContractId == Guid.Parse("881f5e96-deac-45a5-a9cf-69977a5af559")).ToList();

Logger.LogInformation($"{responseData.Count} for merchant requested successfully");
Logger.LogDebug($"Merchant Contract Response: [{JsonConvert.SerializeObject(responseData)}]");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<PackageReference Include="TransactionProcessorACL.DataTransferObjects" Version="2025.12.1" />
</ItemGroup>
<ItemGroup>
<Content Update="hosting.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Update="nlog.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
Expand Down
2 changes: 1 addition & 1 deletion TransactionProcessing.MerchantPos/appsettings.staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"EstateId": "435613ac-a468-47a3-ac4f-649d89764c22",
"MerchantId": "ab1c99fb-1c6c-4694-9a32-b71be5d1da33",
"MerchantName": "Staging Merchant 1",
"Enabled": true,
"Enabled": false,
"ApplicationVersion": "1.0.5",
"DeviceIdentifier": "stagingmerchant1device",
"Username": "merchantuser@stagingmerchant1.co.uk",
Expand Down
3 changes: 3 additions & 0 deletions TransactionProcessing.MerchantPos/hosting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"urls": "http://*:9600"
}
Loading