Guys,

I've spent some time gutting my extremely boiler plate paypal code now
its in master. I've only implemented the PDT data types and response
so far, but im going to do IPN tomorrow / over the weekend.

So then, its all properly immutable now and is just generally a lot
more sensible. To use it from a snippet you do this:

val pdt: PaypalDataTransferReponse =
PaypalDataTransfer("MyAuthToken",S.param("tx")).execute

The default points to the sandbox, so to make it work with live you
need to do:

val pdt: PaypalDataTransferReponse =
PaypalDataTransfer("MyAuthToken",S.param("tx"))
                                                         
.withMode(PaypalLive).execute

When you have your PDT object, and just simply want to see if the
transaction was a success or not you can do:

pdt.paymentSuccessful // gives boolean result

Would love to hear any thoughts people might have at this stage :-)

Cheers

Tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
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