change the step from paymentCallBack - set transactionId on create PaymentGateway

This commit is contained in:
MahanCh
2025-07-20 14:53:50 +03:30
parent e9ab5c40ef
commit bfd6632940
4 changed files with 18 additions and 7 deletions

View File

@@ -83,12 +83,7 @@ public class GeneralController : GeneralBaseController
if (verifyRes.IsSuccess)
{
var setSuccessResult = _paymentTransactionApplication.SetSuccess(paymentTransactionId, cardnumber, bank);
if (!setSuccessResult.IsSuccedded)
{
return new JsonResult(setSuccessResult);
}
//TODO : افزودن دریافت درآمد به وضعیت مالی
var command = new CreateFinancialStatment()
{
@@ -101,7 +96,12 @@ public class GeneralController : GeneralBaseController
DescriptionOption = "بابت قرارداد مابین (روابط کار)",
};
var result = _financialStatmentApplication.Create(command);
_financialStatmentApplication.Create(command);
if (!setSuccessResult.IsSuccedded)
{
return new JsonResult(setSuccessResult);
}
return Redirect(BuildCallbackUrl(transaction.CallBackUrl, true, transaction.Id));
}