diff --git a/ServiceHost/Areas/Admin/Controllers/institutionContractController.cs b/ServiceHost/Areas/Admin/Controllers/institutionContractController.cs index 34936c1b..6eb39cd0 100644 --- a/ServiceHost/Areas/Admin/Controllers/institutionContractController.cs +++ b/ServiceHost/Areas/Admin/Controllers/institutionContractController.cs @@ -470,8 +470,9 @@ public class institutionContractController : AdminBaseController public async Task>> Verify([FromBody] InstitutionVerificationRequest command) { // URL برای redirect به درگاه پرداخت - var paymentRedirectUrl = Url.Action("ProcessPayment", "institutionContract", new { area = "Admin" }, Request.Scheme); - var res = await _institutionContractApplication.VerifyOtpAndMakeGateway(command.Id, command.Code, paymentRedirectUrl); + var paymentRedirectUrl = Url.Action("ProcessPayment", "institutionContract", null, Request.Scheme); + var callback = Url.Action("Verify", "General", null, Request.Scheme); + var res = await _institutionContractApplication.VerifyOtpAndMakeGateway(command.Id, command.Code, callback); if (!res.IsSuccedded) return new OperationResult().Failed(res.Message);