net.liftmodules.paypal

PaypalIPN

trait PaypalIPN extends BasePaypalTrait

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.

Linear Supertypes
BasePaypalTrait, PartialFunction[Req, () ⇒ Box[LiftResponse]], (Req) ⇒ () ⇒ Box[LiftResponse], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. PaypalIPN
  2. BasePaypalTrait
  3. PartialFunction
  4. Function1
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Type Members

  1. case class IPNRequest (r: Req, cnt: Int, when: Long) extends Product with Serializable

    Attributes
    protected

Abstract Value Members

  1. def actions : PartialFunction[(Box[Value], PayPalInfo, Req), Unit]

    Attributes
    abstract

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. lazy val IPNPath : String

  7. lazy val MaxRetry : Int

    How many times do we try to verify the request

  8. object PingMe extends Product with Serializable

    Attributes
    protected
  9. lazy val RootPath : String

    Definition Classes
    BasePaypalTrait
  10. def andThen [C] (k: (() ⇒ Box[LiftResponse]) ⇒ C): PartialFunction[Req, C]

    Definition Classes
    PartialFunction → Function1
  11. def apply (r: Req): () ⇒ Box[LiftResponse]

    Definition Classes
    BasePaypalTrait → Function1
  12. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  13. def buildInfo (resp: PaypalResponse, req: Req): Box[PayPalInfo]

    Attributes
    protected
  14. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def compose [A] (g: (A) ⇒ Req): (A) ⇒ () ⇒ Box[LiftResponse]

    Definition Classes
    Function1
  16. def connection : PaypalConnection

    Definition Classes
    BasePaypalTrait
  17. def defaultResponse (): Box[LiftResponse]

  18. def dispatch : List[DispatchPF]

    Definition Classes
    PaypalIPNBasePaypalTrait
  19. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  20. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  21. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. def functionName : String

    Definition Classes
    BasePaypalTrait
  23. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  24. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  25. def ipnPath : String

  26. def isDefinedAt (r: Req): Boolean

    Definition Classes
    BasePaypalTrait → PartialFunction
  27. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  28. def lift : (Req) ⇒ Option[() ⇒ Box[LiftResponse]]

    Definition Classes
    PartialFunction
  29. lazy val mode : PaypalMode

    Definition Classes
    BasePaypalTrait
  30. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  31. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  32. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  33. def orElse [A1 <: Req, B1 >: () ⇒ Box[LiftResponse]] (that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Definition Classes
    PartialFunction
  34. object requestQueue extends LiftActor

    Attributes
    protected
  35. def rootPath : String

    Definition Classes
    BasePaypalTrait
  36. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  37. def toString (): String

    Definition Classes
    Function1 → AnyRef → Any
  38. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  39. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  40. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from BasePaypalTrait

Inherited from PartialFunction[Req, () ⇒ Box[LiftResponse]]

Inherited from (Req) ⇒ () ⇒ Box[LiftResponse]

Inherited from AnyRef

Inherited from Any