ASP.NET MVC: Complete action before posting to Paypal

Posted by ajbeaven on Stack Overflow See other posts from Stack Overflow or by ajbeaven
Published on 2010-05-11T03:10:46Z Indexed on 2010/05/11 3:14 UTC
Read the original article Hit count: 318

Filed under:
|

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 :)

© Stack Overflow or respective owner

Related posts about paypal

Related posts about asp.net-mvc