I am new in MVC. I tried to implement "Billdesk" payment gateway integration, after successful payment billdesk redirect to return url. I have checked in the browser console area "Billdesk" sent Form data with the key parameter(msg). I found that the
return url repeated at 2 times, one is 301 with Formdata and another one is 200 without formdata. Whenever i tried to get the form value by using Request.Form["msg"] through controller, i am not able get that. So anyone please suggest ideas for this issues.
maybe they generate a GET , so you want Request.QueryString
To my understanding bill desk needs to post to your controller. So it should not give 301 error. I suspect that some security on your website may be raising the 301 error. Please use fiddler to see what actually happening.
Is your return page issuing a Redirect of some sort? Either in the code or via a url rewrite or something? Maybe http to https?
Thanks for your valuable replies. Finally i found, its redirection(server) issues and now i fixed that issue and make it single redirection and i got the response.