i have an app with asp net core web api and angular , i want response of payment bank gateway (that receive from their api),from my own web api to angular , my server side code is :
[HttpPost(“payment-call-back”)]
public async Task PaymentCallBack([FromQuery] string pspName, [FromQuery] string us, [FromForm] PaymentCallBack param)
{
if (ModelState.IsValid) { var result = await _paymentService.PaymentCallBack(pspName, us, param); {result.Data}”;
if (result.Status == DomainClass.Enum.StatusEnum.Success)
{
await _hubContext.Clients.All.SendAsync("ReceiveMessage", result.Data);
}
}