title: How to integrate PayPal Express Checkout with ASP.NET Web Pages site ("Razor")
body: <p>I have an ASP.NET Razor / Web Pages site that I need to integrate with PayPal Express Checkout. <strong>Edit:</strong> this integration requires more than just a simple PayPal-generated button, e.g., I need to dynamically set the price, item description, tax etc.</p>
  
  <p>I am quite new to both Web Pages and PayPal integration so would like to ask what the preferred approach would be.</p>
  
  <p>So far, I have found there are these options:</p>
  
  <ol>
  <li>Use <a href="http://paypalhelper.codeplex.com/" rel="nofollow">PayPal Helper for WebMatrix</a></li>
  <li>Just read the PayPal spec and create a form with hidden fields etc.</li>
  <li>Use some of the <a href="http://www.nuget.org/packages?q=paypal" rel="nofollow">NuGet packages from PayPal</a></li>
  <li>Inspire in some custom code like <a href="https://bitbucket.org/jhelmink/paypalexpresscheckoutmvc/overview" rel="nofollow">this one</a></li>
  </ol>
  
  <p>No. 1 is probably some outdated code (both the release date and recent reviews suggest that), no. 2 will certainly work but I'll be on my own, I'm hoping that no. 3 would be the best answer but there are many of those NuGet packages and I haven't found any good examples yet, and 4 is an option if no other works.</p>
  
  <p>Any suggestions? The goal is to have a simple form, below it my custom "Pay Now" button (preferably; could be also a PayPal-provided button) and when user clicks it, the website should redirect him to PayPal, process the payment notification / approval etc.</p>