I have integrated Payment Gateway in my Web Application made in MVC4 Razor. After payment has been done successfully the user is redirected to the return URL..
Then i do some process like generating unique id ,sending payment details sms blah blah..
[NoCache]
public ActionResult IPGResponse()
{
//Send SMS..
//Save Payment Response..etc
return RedirectToAction("ThankyouUploadDocument");
}
Then I redirect to another Action.
public ActionResult ThankyouUploadDocument()
{
//Do Something
return View("ThankyouUploadDocument" , paymentViewModel);
}
The problem is when user hit back .It goes to IPGResponse() and do all steps again .
I have also used [NoCache]..but it did not worked
I have to Restrict the user to go back to the IPGResponse() or Payment Gateway again..