PostProcessPayment post HttpContext form

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi, I switched to the new version, but I got an error

HttpContext.Current.Response.Clear();
  HttpContext.Current.Response.Write(form.Build());
  HttpContext.Current.Response.Flush();
  HttpContext.Current.Response.End();

The above code gives an error


in this way I found a solution in this way
            _httpContext.HttpContext.Response.Clear();
            _httpContext.HttpContext.Response.WriteAsync(form.Build());
            _httpContext.HttpContext.Response.Body.Flush();
            _httpContext.HttpContext.Response.Body.Close();
5 years ago
Thanks for solving the problem myself
5 years ago
Thanks for solving the problem myself
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.