On Tue, Sep 23, 2008 at 5:13 AM, Tim Perrett <[EMAIL PROTECTED]> wrote:

>
>
>
> On Sep 23, 12:36 pm, David Pollak <[EMAIL PROTECTED]> wrote:
> > I'd love to have a PayPal module in Lift.  Are you able to contribute
> > this part of your code into the Lift codebase?
>
> That was my plan! :-D
>
> Right now im thinking of using bind to post back to the lift app, then
> post it on to paypal rather than having a bunch of form variables
> which could just be edited with firebug or whatever (particularly the
> total amount).


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?


>
>
> Just trying to figure the best method of sending the post and doing
> the PDT stuff
>
> Cheers
>
> Tim
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

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