Tim Perrett wrote:
>   
>> 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?
>   
No, because this is a session-specific thing, it cannot be set up inside 
of boot.  It has to be set up while you've got an active session that 
you're about to redirect to PayPal.

> Could you provide a little example of addHighLevelSessionDispatcher ?
> Im not 100% clear on where it should be called
>   
Please start working on the PayPal code.  Once you have the 
server-server and server-browser negotiation stuff set up, I'll write 
the code to do the session-specific stuff.

> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to