Redirect with POST parameters in MVC 4 for Payment Gateway Integration

后端 未结 3 1668
难免孤独
难免孤独 2021-01-20 20:14

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

3条回答
  •  借酒劲吻你
    2021-01-20 20:38

    You can do it with JavaScript.

    Make a page which does have a html form and submit it through javascript and put your information as input:hidden in the form.

    This will submit the data to the another place you want. Doing it in html gave you more control and you doesn't need to write a action like shown in other answer for every redirect in your app.

提交回复
热议问题