From b9a72b4589a6ce18137b692fa307f99c8864c47c Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Sun, 22 Feb 2026 22:18:51 +0330 Subject: [PATCH] =?UTF-8?q?fix:=20environment-specific=20gateway=20config?= =?UTF-8?q?=20=E2=80=94=20staging=3Dsandbox,=20production=3Dreal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - appsettings.json/Staging.json: UseSandbox=true (sandbox mode for testing) - appsettings.Production.json: UseSandbox=false, MerchantId=new production key - Added SeedWorkers, Kestrel, Seq overrides to Production config --- .../appsettings.Production.json | 15 +++++++++++++++ .../appsettings.Staging.json | 2 +- src/CMSMicroservice.WebApi/appsettings.json | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/CMSMicroservice.WebApi/appsettings.Production.json b/src/CMSMicroservice.WebApi/appsettings.Production.json index 58784ae..1c337a1 100644 --- a/src/CMSMicroservice.WebApi/appsettings.Production.json +++ b/src/CMSMicroservice.WebApi/appsettings.Production.json @@ -1,5 +1,6 @@ { "ZarinPal": { + "MerchantId": "4225d555-5fa9-4df0-9b61-1ce152cbbba8", "UseSandbox": false }, "CmsBaseUrl": "https://cms.kbs1.ir", @@ -7,6 +8,20 @@ "ConnectionStrings": { "DefaultConnection": "Server=mssql-svc;Database=KBS;User Id=sa;Password=YourStrong@Passw0rd;TrustServerCertificate=True;" }, + "SeedWorkers": { + "MagicWalletCycleSeed": { + "Enabled": true + } + }, + "Kestrel": { + "EndpointDefaults": { + "Protocols": "Http2" + } + }, + "Seq": { + "ServerUrl": "http://seq-svc:5341", + "ApiKey": "oxpvpUzU1pZxMS4s3Fqq" + }, "Logging": { "LogLevel": { "Default": "Warning", diff --git a/src/CMSMicroservice.WebApi/appsettings.Staging.json b/src/CMSMicroservice.WebApi/appsettings.Staging.json index 23ac3d9..c8e1395 100644 --- a/src/CMSMicroservice.WebApi/appsettings.Staging.json +++ b/src/CMSMicroservice.WebApi/appsettings.Staging.json @@ -2,7 +2,7 @@ "PaymentProvider": "zarinpal", "ZarinPal": { "MerchantId": "4225d555-5fa9-4df0-9b61-1ce152cbbba8", - "UseSandbox": false + "UseSandbox": true }, "FMS": { "Address": "https://dl.afrino.co" diff --git a/src/CMSMicroservice.WebApi/appsettings.json b/src/CMSMicroservice.WebApi/appsettings.json index 2d32cb1..13c0ffe 100644 --- a/src/CMSMicroservice.WebApi/appsettings.json +++ b/src/CMSMicroservice.WebApi/appsettings.json @@ -2,7 +2,7 @@ "PaymentProvider": "zarinpal", "ZarinPal": { "MerchantId": "4225d555-5fa9-4df0-9b61-1ce152cbbba8", - "UseSandbox": false + "UseSandbox": true }, "CmsBaseUrl": "https://cms.se.kbs1.ir", "FrontOfficeBaseUrl": "https://foursat.se.kbs1.ir",