> Lift has a little know feature that makes this kind of thing super simple > and secure. > > S.addHighLevelSessionDispatcher(name: String, dispatch: > LiftRules.DispatchPf) allows you to, on a session-by-session basis, specify > what to do with a given URL. This allows you to have a PayPal landing page > on your app (the page that the PayPal session returns to) that has all the > state related to the purchase. Just before you send the user to PayPal, you > set up the dispatch for /paypal-complete or something like that. Hand that > URL to PayPal. When the user comes back, they'll go to that landing page... > you do whatever magic is necessary to complete the purchase, remove the high > level dispatch and remove the dispatch. > > Make sense?
Wow, sounds groovy - so, you say "Just before you send the user to PayPal, you set up the dispatch for /paypal-complete or something like that" - where would you setup the dispatch? Is it a boot.scala function? Could you provide a little example of addHighLevelSessionDispatcher ? Im not 100% clear on where it should be called Cheers Tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
