I am trying to do a payment gateway integration using mvc4 in razor. In that i need to call a page with prefilled post form.
Using the below method, I am forming th
You cannot post a form by Redirect
method. You could send generated form string to View
and after that post the form by Javascript
.
public ActionResult OrderSummary()
{
string request=PreparePOSTForm("payment URL","hashdata required for payment")
return View(model:request);
}
and in View of OrderSummary
:
@model string
@Html.Raw(Model)