Type Members
-
case class
IPNRequest
(r: Req, cnt: Int, when: Long) extends Product with Serializable
Abstract Value Members
-
def
actions
: PartialFunction[(Box[Value], PayPalInfo, Req), Unit]
Concrete Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
lazy val
IPNPath
: String
-
lazy val
MaxRetry
: Int
-
object
PingMe
extends Product with Serializable
-
lazy val
RootPath
: String
-
def
andThen
[C]
(k: (() ⇒ Box[LiftResponse]) ⇒ C): PartialFunction[Req, C]
-
def
apply
(r: Req): () ⇒ Box[LiftResponse]
-
def
asInstanceOf
[T0]
: T0
-
-
def
clone
(): AnyRef
-
def
compose
[A]
(g: (A) ⇒ Req): (A) ⇒ () ⇒ Box[LiftResponse]
-
-
def
defaultResponse
(): Box[LiftResponse]
-
def
dispatch
: List[DispatchPF]
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
functionName
: String
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
ipnPath
: String
-
def
isDefinedAt
(r: Req): Boolean
-
def
isInstanceOf
[T0]
: Boolean
-
def
lift
: (Req) ⇒ Option[() ⇒ Box[LiftResponse]]
-
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
orElse
[A1 <: Req, B1 >: () ⇒ Box[LiftResponse]]
(that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
-
object
requestQueue
extends LiftActor
-
def
rootPath
: String
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from PartialFunction[Req, () ⇒ Box[LiftResponse]]
Inherited from (Req) ⇒ () ⇒ Box[LiftResponse]
Inherited from AnyRef
Inherited from Any
To handle IPN transactions you need to do the following:
// in Whatever.scala object MyPayPalHandler extends PayPal { import PaypalTransactionStatus._ def actions = { case (ClearedPayment, info, _) => // write the payment to the database case (RefundedPayment, info, _) => // process refund } } // in Boot.scala LiftRules.statelessDispatchTable = MyPayPalHandler orElse LiftRules.statelessDispatchTable
In this way you then get all the DispatchPF processing stuff for free.