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 to pay for their order, but I have no idea how to do it.
The user should click a submit button, changes are made (in this case, the status of the order), and then the user is redirected to the payment gateway. Eg:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult GoToPaypal(FormCollection collection)
{
//change order status
//send user to paypal where they pay for their order
}
So my question is how do you do application stuff and then redirect to paypal's payment gateway? Example HTML and C# would be lovely :)
Note: This guy seems to have the same issue - (and probably explains it better).