Home MVC Storefront

MVC Storefront Part 22: Restructuring, Rerouting, and PayPal

In this episode I restructure a bit in order to clean things up some. I also tweak the site to redo the routing - something I think that went a little awry on me :). Finally, I add PayPal as a checkout option.

Routing Can Be Tricky
The MVC team did an exceptional job with the Routing engine and I did a less than stellar job of implementing a good routing scheme. As you'll see in this episode, it got to the point where I had a bit of "route spaghetti" in an effort to make my URLs as pretty as possible. You'll see me fix this - something I should have done a while ago - and restore routing to its default state.

One of the very cool things about resetting the routing is that I didn't need to do *any* work to the Views - the ActionLink and Url.Action methods worked flawlessly and I didn't need to update any links. That's awesome :) and a hat-tip goes to Eilon and Phil for that!

PayPal
I want to be sure that implementing a "store for the masses" is bleedingly simple - and nothing is easier for a merchant to setup than accepting payments from PayPal. In this episode I add in PayPal Standard and show you how to setup a PayPal controller that works with PayPal's IPN and PDT. I also show you how to effectively send tax/shipping information to PayPal and catch it on the rebound.

Some Formatting Love
Finally - Rickey Rosario over at Razorfish/AvenueA sent me a patch for the HTML/CSS that both cleaned it up and made it look exceedingly pretty. He even included Yahoo's CSS Reset - which is very nice for resetting the default CSS settings. I can't thank him enough for his work!

This is a bit of a long one (about 50 minutes) - lots of information in here. After this I'm going to put my head down and crank out the rest of the site as I really would like to finish everything up.

Hope you enjoy!

You can watch it here.

The code Is here (SVN is here)

blog comments powered by Disqus
Search Me
Subscribe

Index Of MVC Screencasts

You can watch all of the MVC Screencasts up at ASP.NET, and even leave comments if you like.

Popular Posts
 
My Tweets
  • @haacked must.... resist... assimilation...
  • Dinner at the Haacks. How did Phil get such a cute kid? Evidently Phil's in the doghouse though...
  • @shanselman dude turn off twitter and drive! that's gotta be illegal!
  • For D'Arcy and Justice... Scottgu goes Canuck! http://twitpic.com/mfz1
  • Working in ScottGu's office with @shanselman. Wearing an Orange Polo and saying "go ahead" a lot for some reason.
  About Me



Hi! My name is Rob Conery and I work at Microsoft. I am the Creator of SubSonic and was the Chief Architect of the Commerce Starter Kit (a free, Open Source eCommerce platform for .NET)

I live in Kauai, HI with my family, and when my clients aren't looking, I sometimes write things on my blog (giving away secrets of incalculable value).