ASP.NET MVC: Complete action before posting to Paypal
- by ajbeaven
I'm in the middle of developing an e-commerce site that is using Paypal as it's payment gateway. All I want to do is run some code before the user heads off to Paypal, but I have no idea how to do it. Eg:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult GoToPaypal(FormCollection collection)
{
//do what I want to do
//go to paypal
}
Can you do this? Example HTML and C# would be lovely :)